I recommend Charlie's excellent book as well.<br><br>To answer yr question, yes, CMS + Parew does use MaxTenuringThreshold (henceforth MTT),<br>but in order to allow objects to age you also need sufficiently large survivor spaces to hold<br>
them for however long you wish, otherwise the adaptive tenuring policy will adjust the<br>"current" tenuring threshold so as to prevent overflow. That may be what you saw.<br>Check out the info printed by +PrintTenuringThreshold.<br>
<br>-- ramki<br><br><div class="gmail_quote">On Tue, Jan 10, 2012 at 1:31 AM, Li Li <span dir="ltr"><<a href="mailto:fancyerii@gmail.com">fancyerii@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
hi all<div>   I have an application that generating many large objects and then discard them. I found that full gc can free memory from 70% to 40%. </div><div>   I want to let this objects in young generation longer. I found -XX:MaxTenuringThreshold and -XX:PretenureSizeThreshold.</div>

<div>   But I found a blog that says MaxTenuringThreshold is not used in ParNewGC.</div><div>And I use ParNewGC+CMS. I tried to set MaxTenuringThreshold=10, but it seems no difference.</div>
<br>_______________________________________________<br>
hotspot-gc-use mailing list<br>
<a href="mailto:hotspot-gc-use@openjdk.java.net">hotspot-gc-use@openjdk.java.net</a><br>
<a href="http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use" target="_blank">http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use</a><br>
<br></blockquote></div><br>