Question on ParallelGCThreads

Sujit.Das at cognizant.com Sujit.Das at cognizant.com
Tue Sep 22 12:46:51 PDT 2009


Hi All,
 
We use CMS collector for old generation collection (option -XX:+UseConcMarkSweepGC) and parallel copying collector for young generation (option -XX:+ UseParNewGC). We use ParallelGCThreads command line option (-XX:ParallelGCThreads=<desired number>) to control number of garbage collector threads.
 
My question is:
1. Is ParallelGCThreads option applicable for only minor GC or is it applicable for old generation GC also?
 
2. Since CMS collector is a non-compacting collector and if application faces memory fragmentation issue then reducing # of ParallelGCThreads is an option to reduce fragmentation. Please confirm the understanding. This is based on my reading that each garbage collection thread reserves a part of the old generation for promotions and the division of the available space into these "promotion buffers" can cause a fragmentation effect. Reducing the number of garbage collector threads will reduce this fragmentation effect as will increasing the size of the old generation. 
 
Thanks,
Sujit
 


This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. 
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20090923/22947409/attachment.html 


More information about the hotspot-gc-use mailing list