You can use the following tools to monitor JVM performance and resource consumption. The tools described in this section are unsupported and experimental, and should be used with that in mind. They may not be available in future JDK versions.
Platform support:
For more information, see
Monitoring
and Management for the Java Platform.
java.lang.management
-->
| Tool Name | Brief Description |
|---|---|
| jconsole | Experimental: Java Monitoring and Management Console - JMX-compliant graphical tool for monitoring a Java virtual machine. It can monitor both local and remote JVMs. |
| jps | Experimental: JVM Process Status Tool - Lists instrumented HotSpot Java virtual machines on a target system. |
| jstat | Experimental: JVM Statistics Monitoring Tool - Attaches to an instrumented HotSpot Java virtual machine and collects and logs performance statistics as specified by the command line options. |
| jstatd | Experimental: 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. |
These tools are not currently available on Windows platforms.
| Tool Name | Brief Description |
|---|---|
| jinfo | Experimental - Configuration Info for Java - Prints configuration information for for a given process or core file or a remote debug server. |
| jmap | Experimental - Memory Map for Java - Prints shared object memory maps or heap memory details of a given process or core file or a remote debug server. |
| jsadebugd | Experimental - Serviceability Agent Debug Daemon for Java - Attaches to a process or core file and acts as a debug server. |
| jstack | Experimental - Stack Trace for Java - Prints a stack trace of threads for a given process or core file or remote debug server. |
Refer to the Java TM 2 Platform, Standard Edition 5.0 Trouble-Shooting and Diagnostic Guide which provides descriptions of tools, options, and other items for use in analyzing problems. This document contains suggestions about what to try before submitting a bug report and what data to collect for a report.
[@more@]来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26651/viewspace-1031155/ ,如需转载,请注明出处,否则将追究法律责任。