GC leaks debugging

Andrew Haley aph@redhat.com
Fri Apr 8 15:57:00 GMT 2011


On 04/08/2011 04:52 PM, Erik Groeneveld wrote:
>>> Paging Hans Boehm.  can you suggest ways to get the system to GC more
>>> frequently?  Would doing so avoid this scenario?
>>>
>>
>> Call _Jv_SetGCFreeSpaceDivisor().  I forget what we used to do, but bigger
>> numbers cause it to collect more often.  The default may be 5, but if you
>> make it 20 or 25 you really reduce heap growth.
> 
> Yes, I saw this in the code and I already tried that with 30.  Did not help. ;-(
> Also tried explicit GC_gcollect.  Did also not help.
> 
> I'll sleep another night; new clues will come... ;-)

I think you should add some code to detect a high watermark and
then trap to a breakpoint.

Andrew.



More information about the Java mailing list