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...
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.
Select the available plug-in and upgrade to the latest version.
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.
Open the URL:
https://visualvm.github.io/pluginscenters.html to find the corresponding,
click the link to enter and copy the address to the jvisualvm plug-in address and replace it
After that, you can download the Visual GC plug-in and restart it. The restart interface is as follows