[Mono-list] How to use the Boehm garbage collector

Marcus mathpup@mylinuxisp.com
Mon, 3 May 2004 11:56:24 -0500


With Mono and Boehm GC, the collector never compacts the heap. I think that's 
why your memory usage does not decrease. (More sophisticated collectors like 
MS.NET, various LISP systems, Modula-3 do compact the heap by moving object 
references during collections.)

Also, my general obsevation for garbage collectors is that Collect() should be 
interpreted as a hint to the GC that now would be a good time to collect. 


On Monday 03 May 2004 9:41 am, HannibAl Bundie wrote:

> The method GC.Collect() uses the Boehm collector ??
> Because with my application, GC.Collect() doesn't reduce the total memory
> used. And for this reason I thought that GC.Collect wasn't implemented. So
> I wanted to use an other collector.
>
> Is there any other way to force to reduce the memory used by my program ?