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, seehttp://www.oracle.com/technetwork/java/javaseproducts/
.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.
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 |
|
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. |
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: |