8 Troubleshooting Tools

This chapter describes various troubleshooting tools available in Java SE and compares their functionality to those available in Oracle JRockit.

Note:

Some of the tools described in this document require a commercial license for use in production. To learn more about commercial features and how to enable them, see http://www.oracle.com/technetwork/java/javaseproducts/.

Troubleshooting Tools Available in Java SE

The following table lists various tools available for troubleshooting in Java SE. Some of these tools have been brought over from Oracle JRockit to HotSpot VM for providing comparable functionality.

Table 8-1 Tools

Java SE Troubleshooting Tools Notes/Resources

Java Flight Recorder and Mission Control

Serviceability Agent

Java VisualVM

JConsole

jcmd command utility

JDK utilities

There are many useful utilities bundled with JDK:

visualgc

visualgc Tool

Native Memory Tracking Too

-XX:NativeMemoryTracking=mode

Specifies the mode for tracking JVM native memory usage. This option is useful for tracking the native memory usage by the JVM.

http://hirt.se/blog/?p=401

JOverflow - Experimental plug-in

There is still no Memory Leak Detector Tool available in Java SE. However, there is an experimental plugin for Java Mission Control that can be used to detect memory leaks:

http://hirt.se/blog/?p=343