This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GC leaks debugging


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]