Common commands
jps -l
View the VMID of the java virtual machine process
jstat -gcutil vmid
View the memory usage and GC time of each area of the JVM
S0 S1 surviver
And eden
O old age
M Permanent Generation (Meta)
YGC 10 YGC 10 times
YGCT YGC Time 0.05秒
FGC FGCT Full GC Same as above
CGC Concurrent GC
GCT total GC time 0.069 seconds
jmap -dump:format=b, file=xx.bin jvmid
JVM memory snapshot
jstack -l jvmid
Thread stack snapshot
Visualization tool
jconsole
Visual Vm
https://visualvm.github.io/download.html