In java what is default threshold for young generation object to move to old generation. I mean how many GC an object need to survive so that it can be moved to old or tenured generation area of heap.
The option is called -XX:MaxTenuringThreshold. 
Docs say, the default value is 15 for G1 and parallel collector and is 4 for CMS (source).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With