JDK's own thread monitoring tool jvisualvm

jvisualvm: monitor memory leaks, track garbage collection, run-time memory, cpu analysis, thread analysis...

jvisualvm has been integrated in jdk1.6 and above (not jre). The minimum version of jdk1.6 is required for its own operation, but it can monitor java programs running in versions above jdk1.4

Take jdk1.6update45 (jvisualvm that comes with jdk1.6update45) as an illustration. Of course, you can also download the independent jvisualvm separately. After installing jdk normally, go to the bin directory of jdk and run jvisualvm.exe.

JDK comes with a thread monitoring tool

Java\jdk1.8.0_65\bin directory

Click to start

run the program

You can see the running status, the summary of the monitoring process, monitoring, threads and other information will be displayed in the form of images, which can more easily analyze the Java running program

Right-click the left column, the running Java program, can perform Dump, thread, Dump heap operations and can store snapshots of the running program, and can be set to automatically generate a Dump file when a memory overflow occurs.

 

 

 

 Right-click [File] --> [Add Remote Host] to monitor remotely running Java programs

The menu bar, tools --> plug-in auxiliary functions can help us monitor and analyze Java programs in more detail. For example, Visual GC can display real-time data of the Eden area and survivor area in the young generation.

 

Visualvm is a very practical Java monitoring tool, which is very convenient to operate

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325911943&siteId=291194637