mercredi 27 juillet 2016

How to get current/max jvm heap utilization (single value) with jstat or other command-line based tool?

JConsole or J VisualVM show the maximum heap size and the current heap utilization. How can I get the same values, during the lifespan of an application, using a command-line based tool, such as jstat?

From the metrics that I collect with jstat -gc (S0C S1C S0U S1U EC EU OC OU MC MU CCSC CCSU YGC YGCT FGC FGCT GCT), how can I compute the (single value) heap utilization that is given by JConsole/Visual VM?

Aucun commentaire:

Enregistrer un commentaire