Java Monitoring&Troubleshooting Tools

半世苍凉 提交于 2021-02-08 21:55:48

JDK Tools and Utilities

Monitoring Tools

You can use the following tools to monitor JVM performance statistics. The tools described in this section are unsupported and experimental, and should be used with that in mind. <font color='red'>They may not be available in future JDK versions</font>. These tools are supported on all platforms except Windows 98 and Windows ME.

Tool Name Brief Description
<font color='blue'>jps Experimental: JVM Process Status Tool - Lists instrumented HotSpot Java virtual machines on a target system.
<font color='blue'>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.
<font color='blue'>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.

Troubleshooting Tools

The following tools can be used for specific troubleshooting tasks. The tools described in this section are unsupported and experimental in nature and should be used with that in mind. <font color='red'>They may not be available in future JDK versions</font>.
Some of these tools are not currently available on Windows platforms.

Tool Name Brief Description
<font color='blue'>jinfo Experimental - Configuration Info for Java - Prints configuration information for a given process or core file or a remote debug server.
<font color='blue'>jhat Experimental - Heap Dump Browser - Starts a web server on a heap dump file (for example, produced by jmap -dump), allowing the heap to be browsed.
<font color='blue'>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.
<font color='blue'>jsadebugd Experimental - Serviceability Agent Debug Daemon for Java - Attaches to a process or core file and acts as a debug server.
<font color='blue'>jstack Experimental - Stack Trace for Java - Prints a stack trace of threads for a given process or core file or remote debug server.
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!