Preface
The author recently needed to check the GC situation when troubleshooting problems, so he used the tool jvisualvm. After consulting online information, he found that it has a plug-in called VisualGC that is very easy to use, so I will record the installation steps of the VisualGC plug-in in this article.
installation steps
Download plugin
First we have to go to the official website
https://visualvm.github.io/index.html
click to download
Then select plugin download
Download the corresponding plug-in according to your own jdk version
You can see the author’s jdk8 version 251
C:\Users\xxxx>java -version
java version "1.8.0_251"
Java(TM) SE Runtime Environment (build 1.8.0_251-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.251-b08, mixed mode)
So go to this version option to find the plug-in
Finally click VisualGC to download
Install
After completing the download, we can start the installation. We first open jvisualvm and select the plug-in option in the toolbar.
Go to Downloaded and click Add Plug-in
Find the plug-in, click to open it, and then select Install in the lower left corner.
test
At this time we can check the GC situation of the Java process.