New & Survivor Ratio when using ParallelGC
843829Oct 15 2005 — edited May 31 2006Hi,
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.