<div dir="ltr">For SurvivorRatio, the handling in ParallelScavenge is a little bit different than other collectors in HotSpot. The collectors in the Generational GC framework and G1 use SurvivorRatio directly, so the value shown by jmap is the one that's taking effect. But ParallelScavenge doesn't use SurvivorRatio directly, instead it uses IntialSurvivorRatio and MinSurvivorRatio, with the latter two set ergonomically when the former is set explicitly. So with ParallelScavenge the SurvivorRatio value shown in jmap might not reflect what's really taking effect.<div>
<br></div><div style>Thank you very much for fixing this. It's been annoying for a long time, and I've been bugged a lot by people confused by the values shown in jmap -heap.</div><div style><br></div><div style>Regards,</div>
<div style>Kris</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 18, 2013 at 9:13 PM, Thomas Schatzl <span dir="ltr"><<a href="mailto:thomas.schatzl@oracle.com" target="_blank">thomas.schatzl@oracle.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<div class="im"><br>
On Thu, 2013-04-18 at 02:33 +0800, Krystal Mok wrote:<br>
> Hi Thomas,<br>
><br>
> Could the same kind of update be done for OldSize and SurvivorRatio?<br>
> For OldSize, if it's not explicitly set then it'll always show a<br>
> default value which is like 5MB or something, regardless of the<br>
> collector used.<br>
<br>
</div>Going with the naming convention, OldSize would show the initial old<br>
generation size.<br>
<div class="im"><br>
> For SurvivorRatio, when using UseParallelGC or UseParallelOldGC, if<br>
> it's not explicitly set then InitialSurvivorRatio is the flag that<br>
> actually takes effect. It's better if SurvivorRatio could be updated<br>
> accordingly too.<br>
<br>
</div>I think all collectors show these problems, just like in the MaxNewSize<br>
case.<br>
<br>
I created a CR which will become available later at<br>
<a href="http://bugs.sun.com/view_bug.do?bug_id=8012591" target="_blank">http://bugs.sun.com/view_bug.do?bug_id=8012591</a> . It is a bit more<br>
generic as it requests to look at the other flags directly printed by<br>
jmap as well.<br>
<br>
Hth,<br>
Thomas<br>
<br>
<br>
</blockquote></div><br></div>