Re: GC leaks debugging

David Daney <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.