GC in Services

solidstore

Newcomer
Joined
May 21, 2003
Messages
1
I have a strange problem related to ever rising memory in the GC heaps. When
I run my service, memory is continually allocated during a test cycle.
However if I simply change the services startup routine to instead just wait
showing a messagebox (instead of adding the service) and let the other
threads carry on their work I get a nice zig-zag line as expected in perfmon
showing #Bytes in all Heaps which always stays under #Total committed
Bytes. The graph for the service version just increases upward for both
counters. What could be happening?
I understand that the GC only collects memory if it has to, and is only does
this during further allocations but I want to prevent my service claim more
resources than is needs to run preventing other NON .NET application being
starved of RAM.
 
Back
Top