Performance monitoring the use of jvisualvm

Jdk's two small tools jconsole, jvisualvm (upgraded version of jconsole). Started through the command line, can monitor local and remote applications, remote applications need to be configured
1. What can jvisualvm do?
Monitor memory leaks, track garbage collection, execute memory, cpu analysis, thread analysis...
Insert picture description here
Run: running thread

Sleep: sleep

Waiting: wait

Resident: idle threads in the thread pool

Monitoring: blocked threads, waiting for locks.
Usage:
open the cmd interface in the window window, enter jvisualvm, and install the plug-in.
Insert picture description here
Select the available plug-in and upgrade to the latest version.
Insert picture description here
If there is no error, download the Visual GC plug-in. After the installation is complete, restart jvisualvm.
If an error is reported, the plug-in version is inconsistent with the jdk version. First check what version of your jdk was installed.
Insert picture description here
Open the URL:
https://visualvm.github.io/pluginscenters.html to find the corresponding,
Insert picture description here
click the link to enter and copy the address to the jvisualvm plug-in address and replace it

Insert picture description here
Insert picture description here
After that, you can download the Visual GC plug-in and restart it. The restart interface is as follows
Insert picture description here

Guess you like

Origin blog.csdn.net/u014496893/article/details/113835016