MaxTenuringThreshold available in ParNewGC?
Srinivas Ramakrishna
ysr1729 at gmail.com
Tue Jan 10 17:23:53 UTC 2012
I recommend Charlie's excellent book as well.
To answer yr question, yes, CMS + Parew does use MaxTenuringThreshold
(henceforth MTT),
but in order to allow objects to age you also need sufficiently large
survivor spaces to hold
them for however long you wish, otherwise the adaptive tenuring policy will
adjust the
"current" tenuring threshold so as to prevent overflow. That may be what
you saw.
Check out the info printed by +PrintTenuringThreshold.
-- ramki
On Tue, Jan 10, 2012 at 1:31 AM, Li Li <fancyerii at gmail.com> wrote:
> hi all
> 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%.
> I want to let this objects in young generation longer. I found
> -XX:MaxTenuringThreshold and -XX:PretenureSizeThreshold.
> But I found a blog that says MaxTenuringThreshold is not used in
> ParNewGC.
> And I use ParNewGC+CMS. I tried to set MaxTenuringThreshold=10, but it
> seems no difference.
>
> _______________________________________________
> hotspot-gc-use mailing list
> hotspot-gc-use at openjdk.java.net
> http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/hotspot-gc-dev/attachments/20120110/1116311d/attachment.htm>
-------------- next part --------------
_______________________________________________
hotspot-gc-use mailing list
hotspot-gc-use at openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use
More information about the hotspot-gc-dev
mailing list