I suspect Andy (lordpixel) may be referring to CMS generally not giving old gen heao memory back to the OS even when applicatio<br>footprint shrinks. I haven't ventured into CMS resizing code in a while, but i assumed that it would not be difficult to make it do so at<br>
the end of a sweep because of keeping a (hopefully) large contiguous free block at the high end of the heap. I don't think though that<br>heap shrinking was ever a priority for the server environments in which CMS mostly got used, so it never really got done.<br>
<br>-- ramki<br><br><div class="gmail_quote">On Mon, Dec 17, 2012 at 10:38 AM, Jon Masamitsu <span dir="ltr"><<a href="mailto:jon.masamitsu@oracle.com" target="_blank">jon.masamitsu@oracle.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-XX:+UseParNewGC will give you a parallel young gen collector<br>
plus the serial old gen collector. It does not have all the features<br>
that -XX:+UseParallelGC has (for example, does not have support<br>
for -XX:+UseNUMA). It actually is one of the combinations that<br>
we would like to remove.<span class="HOEnZb"><font color="#888888"><br>
<br>
Jon</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On 12/14/2012 9:24 PM, <a href="mailto:lordpixel@me.com" target="_blank">lordpixel@me.com</a> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
For whatever reason I assumed this was only a collector for the young generation... is that wrong? Even if it does give memory back, for one of my apps at least its the old generation that needs to shrink.<br>
<br>
On Dec 14, 2012, at 10:52 AM, Jon Masamitsu<<a href="mailto:jon.masamitsu@oracle.com" target="_blank">jon.masamitsu@<u></u>oracle.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-XX:+UseParNewGC<br>
</blockquote>
AndyT (lordpixel - the cat who walks through walls)<br>
A little bigger on the inside<br>
<br>
(see you later space cowboy, you can't take the sky from me)<br>
<br>
<br>
<br>
</blockquote>
</div></div></blockquote></div><br>