jstat
The jstat utility uses the built-in instrumentation in the HotSpot JVM to provide information about performance and resource consumption of running applications.
You can use the jstat utility to diagnose performance issues, especially issues that are related to heap sizing and garbage collection. Some of its many options can print statistics regarding garbage collection behavior and the capacities and usage of the various generations.