{"id":1658,"date":"2026-06-17T07:02:07","date_gmt":"2026-06-17T07:02:07","guid":{"rendered":"https:\/\/www.hostx.ro\/kb\/cum-reduc-utilizarea-memoriei-net-core\/"},"modified":"2026-07-25T14:50:36","modified_gmt":"2026-07-25T12:50:36","password":"","slug":"cum-reduc-utilizarea-memoriei-net-core","status":"publish","type":"docs","link":"https:\/\/www.hostx.ro\/kb\/cum-reduc-utilizarea-memoriei-net-core\/","title":{"rendered":"Cum reduc utilizarea memoriei \u00een .NET Core?"},"content":{"rendered":"<p>Una dintre cele mai simple solu\u021bii este trecerea <strong>Garbage Collection<\/strong> din modul <em>Server<\/em> \u00een modul <em>Workstation<\/em>. \u00cen proiectele moderne, seteaz\u0103 \u00een fi\u0219ierul <code>.csproj<\/code>:<\/p>\n<pre>&lt;PropertyGroup&gt;\n  &lt;ServerGarbageCollection&gt;false&lt;\/ServerGarbageCollection&gt;\n&lt;\/PropertyGroup&gt;<\/pre>\n<p>Alternativ, \u00een <code>runtimeconfig.json<\/code>:<\/p>\n<pre>{\n  \"runtimeOptions\": {\n    \"configProperties\": {\n      \"System.GC.Server\": false\n    }\n  }\n}<\/pre>\n<p>Deoarece serverele HostX ruleaz\u0103 pe procesoare multiple, GC-ul de tip Server aloc\u0103 mai mult\u0103 memorie; comutarea pe Workstation reduce consumul de memorie al aplica\u021biei.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Una dintre cele mai simple solu\u021bii este trecerea Garbage Collection din modul Server \u00een modul Workstation. \u00cen proiectele moderne, seteaz\u0103 \u00een fi\u0219ierul .csproj: &lt;PropertyGroup&gt; &lt;ServerGarbageCollection&gt;false&lt;\/ServerGarbageCollection&gt; &lt;\/PropertyGroup&gt; Alternativ, \u00een runtimeconfig.json: { &#8222;runtimeOptions&#8221;: { &#8222;configProperties&#8221;: { &#8222;System.GC.Server&#8221;: false } } } Deoarece serverele HostX ruleaz\u0103 pe procesoare multiple, GC-ul de tip Server aloc\u0103 mai mult\u0103 memorie; comutarea &#8230; <a title=\"Cum reduc utilizarea memoriei \u00een .NET Core?\" class=\"read-more\" href=\"https:\/\/www.hostx.ro\/kb\/cum-reduc-utilizarea-memoriei-net-core\/\" aria-label=\"Cite\u0219te mai multe despre Cum reduc utilizarea memoriei \u00een .NET Core?\">Cite\u0219te mai mult<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"whmcs_kb_id":1199,"footnotes":""},"doc_category":[165],"doc_tag":[377,387,291,226],"class_list":["post-1658","docs","type-docs","status-publish","hentry","doc_category-net-core","doc_tag-asp-net","doc_tag-configuratie","doc_tag-optimizare-performanta","doc_tag-performanta"],"year_month":"2026-10","word_count":73,"total_views":"22","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Adrian Firican","author_nicename":"techeditor1","author_url":"https:\/\/www.hostx.ro\/kb\/author\/techeditor1\/"},"doc_category_info":[{"term_name":".Net Core","term_url":"https:\/\/www.hostx.ro\/kb\/docs-category\/net-core\/"}],"doc_tag_info":[{"term_name":"ASP.NET","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/asp-net\/"},{"term_name":"configura\u021bie","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/configuratie\/"},{"term_name":"optimizare performan\u021b\u0103","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/optimizare-performanta\/"},{"term_name":"performan\u021b\u0103","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/performanta\/"}],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Reducere memorie .NET Core - Garbage Collection - Centrul de suport HostX<\/title>\n<meta name=\"description\" content=\"Discover how to reduce memory usage in .NET Core by switching from Server to Workstation Garbage Collection mode. Simple configuration changes for better performance.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hostx.ro\/kb\/cum-reduc-utilizarea-memoriei-net-core\/\" \/>\n<meta property=\"og:locale\" content=\"ro_RO\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Reducere memorie .NET Core - Garbage Collection - Centrul de suport HostX\" \/>\n<meta property=\"og:description\" content=\"Discover how to reduce memory usage in .NET Core by switching from Server to Workstation Garbage Collection mode. Simple configuration changes for better performance.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hostx.ro\/kb\/cum-reduc-utilizarea-memoriei-net-core\/\" \/>\n<meta property=\"og:site_name\" content=\"Centrul de suport HostX\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-25T12:50:36+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/cum-reduc-utilizarea-memoriei-net-core\\\/\",\"url\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/cum-reduc-utilizarea-memoriei-net-core\\\/\",\"name\":\"Reducere memorie .NET Core - Garbage Collection - Centrul de suport HostX\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/#website\"},\"datePublished\":\"2026-06-17T07:02:07+00:00\",\"dateModified\":\"2026-07-25T12:50:36+00:00\",\"description\":\"Discover how to reduce memory usage in .NET Core by switching from Server to Workstation Garbage Collection mode. Simple configuration changes for better performance.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/cum-reduc-utilizarea-memoriei-net-core\\\/#breadcrumb\"},\"inLanguage\":\"ro-RO\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/cum-reduc-utilizarea-memoriei-net-core\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/cum-reduc-utilizarea-memoriei-net-core\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Prima pagin\u0103\",\"item\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"InfoCentru\",\"item\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Cum reduc utilizarea memoriei \u00een .NET Core?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/\",\"name\":\"Centrul de suport HostX\",\"description\":\"tutoriale gazduire web, domenii web \u0219i servere\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ro-RO\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Reducere memorie .NET Core - Garbage Collection - Centrul de suport HostX","description":"Discover how to reduce memory usage in .NET Core by switching from Server to Workstation Garbage Collection mode. Simple configuration changes for better performance.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hostx.ro\/kb\/cum-reduc-utilizarea-memoriei-net-core\/","og_locale":"ro_RO","og_type":"article","og_title":"Reducere memorie .NET Core - Garbage Collection - Centrul de suport HostX","og_description":"Discover how to reduce memory usage in .NET Core by switching from Server to Workstation Garbage Collection mode. Simple configuration changes for better performance.","og_url":"https:\/\/www.hostx.ro\/kb\/cum-reduc-utilizarea-memoriei-net-core\/","og_site_name":"Centrul de suport HostX","article_modified_time":"2026-07-25T12:50:36+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.hostx.ro\/kb\/cum-reduc-utilizarea-memoriei-net-core\/","url":"https:\/\/www.hostx.ro\/kb\/cum-reduc-utilizarea-memoriei-net-core\/","name":"Reducere memorie .NET Core - Garbage Collection - Centrul de suport HostX","isPartOf":{"@id":"https:\/\/www.hostx.ro\/kb\/#website"},"datePublished":"2026-06-17T07:02:07+00:00","dateModified":"2026-07-25T12:50:36+00:00","description":"Discover how to reduce memory usage in .NET Core by switching from Server to Workstation Garbage Collection mode. Simple configuration changes for better performance.","breadcrumb":{"@id":"https:\/\/www.hostx.ro\/kb\/cum-reduc-utilizarea-memoriei-net-core\/#breadcrumb"},"inLanguage":"ro-RO","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hostx.ro\/kb\/cum-reduc-utilizarea-memoriei-net-core\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.hostx.ro\/kb\/cum-reduc-utilizarea-memoriei-net-core\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Prima pagin\u0103","item":"https:\/\/www.hostx.ro\/kb\/"},{"@type":"ListItem","position":2,"name":"InfoCentru","item":"https:\/\/www.hostx.ro\/kb\/docs\/"},{"@type":"ListItem","position":3,"name":"Cum reduc utilizarea memoriei \u00een .NET Core?"}]},{"@type":"WebSite","@id":"https:\/\/www.hostx.ro\/kb\/#website","url":"https:\/\/www.hostx.ro\/kb\/","name":"Centrul de suport HostX","description":"tutoriale gazduire web, domenii web \u0219i servere","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hostx.ro\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ro-RO"}]}},"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/docs\/1658","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/comments?post=1658"}],"version-history":[{"count":2,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/docs\/1658\/revisions"}],"predecessor-version":[{"id":5027,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/docs\/1658\/revisions\/5027"}],"wp:attachment":[{"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/media?parent=1658"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/doc_category?post=1658"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/doc_tag?post=1658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}