HighTechTalks DotNet Forums  

Supress the garbage collector

Dotnet Framework (Performance) microsoft.public.dotnet.framework.performance


Discuss Supress the garbage collector in the Dotnet Framework (Performance) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Arnie
 
Posts: n/a

Default Supress the garbage collector - 03-31-2006 , 05:39 PM






Hey Folks,

I know this is taboo but we have a long running highly availble app that is
being affected by the garbage collector.

In .NET 1.1 there were issues because of the aggressive GC and under 2.0 it
appears much worse (i.e. the garbage collector is even more aggressive).

We have noticed that there are the Add/RemoveMemoryPressure hints to the GC
with the amount of unmanaged memory allocated.

Can these be used as tricks to make the GC less aggressive?

Any other ideas without actually going back to the unmanaged world?
Would just making things unsafe in critical areas and doing the memory
management ourselves make more sense?

-arnie



Reply With Quote
  #2  
Old   
Naveen
 
Posts: n/a

Default Re: Supress the garbage collector - 03-31-2006 , 09:36 PM








My Suggestion would be is to not to tweak around with GC because the
CLR GC is tuned for very well. In spite of this if you need to change
the way in GC collects the manage heap is using the hosting interface
ICLRGCManager (available only .NET 2.0).


Reply With Quote
  #3  
Old   
Alvin Bruney - ASP.NET MVP
 
Posts: n/a

Default Re: Supress the garbage collector - 04-03-2006 , 01:06 PM



Quote:
I know this is taboo but we have a long running highly availble app that is
being affected by the garbage collector.
Explain what you mean by this.

--
Warm Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley 2006
Blog: http://msmvps.com/blogs/Alvin/
-------------------------------------------------------



"Arnie" <jefferyronaldarnett (AT) msn (DOT) com> wrote

Quote:
Hey Folks,

I know this is taboo but we have a long running highly availble app that
is
being affected by the garbage collector.

In .NET 1.1 there were issues because of the aggressive GC and under 2.0
it
appears much worse (i.e. the garbage collector is even more aggressive).

We have noticed that there are the Add/RemoveMemoryPressure hints to the
GC
with the amount of unmanaged memory allocated.

Can these be used as tricks to make the GC less aggressive?

Any other ideas without actually going back to the unmanaged world?
Would just making things unsafe in critical areas and doing the memory
management ourselves make more sense?

-arnie





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.