GC leaks debugging

David Daney ddaney@caviumnetworks.com
Fri Apr 8 15:35:00 GMT 2011


On 04/08/2011 06:55 AM, Andrew Haley wrote:
> On 04/07/2011 06:42 PM, Erik Groeneveld wrote:
> > I wonder.
>
>> Just two questions:
>> 1. What is a reasonable number of heap sections?  I have 131 here.
>> 2. What is a reasonable number of free lists?  I have 60, which have
>> 13,000+ entries.
>
> 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.



David Daney



More information about the Java mailing list