Re: Garbage Collection Issues in long-standing services



Willy Denoyette [MVP] wrote:

Did you ever checked the GC performance counters (using perfmon) to check whether this is true? The GC is more aggressive than you imagine.
Just check the Gen0 1 and 2 performance counters and you will see that the collector runs, your problem is that you are holding references to objects (probably large objects) which you never release, so there is little or nothing to collect.
By starting another process that allocates memory, your service working set gets trimmed by the OS, that all that happens.


Willy.

Could also be some large objects that are on the Large object Heap that is not getting compacted. I found this article a good starting point: http://tinyurl.com/3e9n3
HTH,
Andy


--
To email me directly, please remove the *NO*SPAM* parts below:
*NO*SPAM*xmen40@*NO*SPAM*gmx.net
.


Loading