Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

New & Survivor Ratio when using ParallelGC

843829Oct 15 2005 — edited May 31 2006
Hi,

I'm using JDK 1.5.0_05, and I've tried using the -XX:SurvivorRatio=1 and -XX:NewRatio=1 switches in order to set fixed ratios. However, when I inspect the generations via jconsole, only the NewRatio seems to be taking effect, while the SurvivorRatio is adjusted automatically, and the survivor space varies over time, and it is never equal in size to the eden space; it is always rather tiny.

I know about the UseAdaptiveSizePolicy, and I've tried using it, but it didn't help. As a result I downloaded the sources in order to find out what other options exist, and I ended up disabling UsePSAdaptiveSurvivorSizePolicy as well (among others, which I later removed). Still no luck.

Is there a way of getting a fixed ratio for the survivor space, or is this the nature of the parallel GC, and it cannot be changed?

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 28 2006
Added on Oct 15 2005
3 comments
546 views