﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>InstantASP Community Forums / InstantForum.NET 4.x / General Discussion  / High memory usage for the ASP.NET process / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>InstantASP Community Forums</description><link>http://community.instantasp.co.uk/</link><webMaster>sales@instantasp.co.uk</webMaster><lastBuildDate>Mon, 01 Dec 2008 17:48:55 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: High memory usage for the ASP.NET process</title><link>http://community.instantasp.co.uk/Topic11443-36-1.aspx</link><description>Thanks Ryan. Are multi-core processors included in this? I.E If you have a single multi-core CPU, would this still apply?</description><pubDate>Tue, 09 Oct 2007 13:57:50 GMT</pubDate><dc:creator>Jay Adair</dc:creator></item><item><title>High memory usage for the ASP.NET process</title><link>http://community.instantasp.co.uk/Topic11443-36-1.aspx</link><description>Hi All,&lt;P&gt;We've had a few reports from customers who are running InstantForum.NET in a multi-processor enviroment that the ASP.NET memory usage would continue to grow and not be released. We repilcated this locally. This could grow to around 200mb and only release after the process is recycled.&lt;/P&gt;&lt;P&gt;This only occurrs on mutli-processor servers (dual-quad etc).&lt;/P&gt;&lt;P&gt;After investigation during the v4.1.4 update we tracked this down to the garbage collector. This behavior occurs because the CLR uses the "Server" garbage collector on a multi-processor computer, which creates one heap per processor, consuming lots of memory. &lt;/P&gt;&lt;P&gt;To workaround this behavior, configure the CLR to use the "Workstation" garbage collector:&lt;/P&gt;&lt;P&gt;1. Open the &lt;B&gt;Aspnet.config&lt;/B&gt; file in &lt;B&gt;Notepad.exe&lt;/B&gt;. The file is located at &lt;B&gt;%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\Aspnet.config&lt;/B&gt; for .NET Framework 2.0 and at &lt;B&gt;%SystemRoot%\Microsoft.NET\Framework\v1.1.4322\Aspnet.config&lt;/B&gt; for .NET Framework 1.1. &lt;P&gt;2. In the &lt;B&gt;&amp;lt;runtine&amp;gt;&lt;/B&gt; section, add &lt;B&gt;&amp;lt;gcServer enabled="false"/&amp;gt;&lt;/B&gt;. &lt;P&gt;3. Save the &lt;B&gt;Aspnet.config&lt;/B&gt; file.&lt;/P&gt;&lt;P&gt;This should greatly reduce the memory used by the ASP.NET process. I hope this helps a few customers. &lt;P&gt;If you have any questions please don't hesitate to respond to this thread.</description><pubDate>Fri, 04 Aug 2006 11:46:19 GMT</pubDate><dc:creator>Ryan Healey</dc:creator></item></channel></rss>