Troubleshooting Tools and Utilities bundled with Java SE
HPROF Profiler
HPROF Profiler is a Heap and CPU profiling tool. It is capable of presenting CPU usage,
heap allocation statistics, and monitor contention profiles. In addition, it can also
report complete heap dumps and states of all the monitors and threads in the Java virtual machine.
JConsole can be used to observe information about an application running on the Java platform.
It uses the extensive instrumentation of the Java virtual machine to provide information on
performance and resource consumption of applications running on the Java platform using
Java Management Extension (JMX) technology. JConsole helps to:
Detect low memory
Enable or disable GC and class loading verbose tracing
Detect deadlocks
Control the log level of any loggers in an application
jstat is JVM Statistics Monitoring Tool. It attaches to an instrumented
HotSpot Java virtual machine and collects and logs performance statistics
as specified by the command line options.
JVM jstat Daemon - Launches an RMI server application that monitors
for the creation and termination of instrumented HotSpot Java virtual
machines and provides a interface to allow remote monitoring tools to attach to
Java virtual machines running on the local system.