Ryan Stewart
Ryan Stewart

Reputation: 128829

Which option/tool shows tenuring thresholds for Java?

I once found a way to show the current tenuring threshold (among other things) for the Hotspot JVM. I believe it was a JVM option that was configurable to print the information at a specified interval to stdout. I can't find it now. What option/tool am I looking for to do this?

Upvotes: 1

Views: 332

Answers (1)

Amir Afghani
Amir Afghani

Reputation: 38531

I believe you're looking for : -XX:+PrintTenuringDistribution. Did you look here? I should ask: Why do you care? It's generally not recommended to tinker with these flags unless you really know what you're doing. I would stick to sizing my heap and let the JVM ergonomics do the rest.

Upvotes: 3

Related Questions