InstantASP Community Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



High memory usage for the ASP.NET... Expand / Collapse
Author
Message
Posted 04/08/2006 11:46:19


IF.NET 4.2 Coming Soon

IF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming Soon

Group: Administrators
Last Login: 2 days ago @ 14:57:33
Posts: 1,949, Visits: 3,002
Hi All,

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.

This only occurrs on mutli-processor servers (dual-quad etc).

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.

To workaround this behavior, configure the CLR to use the "Workstation" garbage collector:

1. Open the Aspnet.config file in Notepad.exe. The file is located at %SystemRoot%\Microsoft.NET\Framework\v2.0.50727\Aspnet.config for .NET Framework 2.0 and at %SystemRoot%\Microsoft.NET\Framework\v1.1.4322\Aspnet.config for .NET Framework 1.1.

2. In the <runtine> section, add <gcServer enabled="false"/>.

3. Save the Aspnet.config file.

This should greatly reduce the memory used by the ASP.NET process. I hope this helps a few customers.

If you have any questions please don't hesitate to respond to this thread.


Kindest Regards,

Ryan Healey
Director / Developer

Explore our products...
http://demos.instantasp.co.uk/

Post #11443
Posted 09/10/2007 13:57:50
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 21/08/2008 16:37:55
Posts: 50, Visits: 67
Thanks Ryan. Are multi-core processors included in this? I.E If you have a single multi-core CPU, would this still apply?



londonbikers.com - London's Motorcycling Home
Running a customised InstantForum v4.1.4
Post #13422
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ryan Healey, Mark Christianson, Bare, James Trott

Permissions Expand / Collapse

All times are GMT, Time now is 9:29am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.047. 10 queries. Compression Disabled.
Home | Products | Purchase | Support | Company | Contact Us
Privacy Statement | © 1999-2007 InstantASP Limited. All Rights Reserved.