Linux uses the jstat command to view the GC status of the jvm
Options, options, we generally use -gcutil to view the gc situation vmid, the process number of the VM, that is, the currently running java process number interval, the interval time, in seconds or milliseconds count, the number of times of printing, if the default is printed countless times
Usually run the command as follows:
jstat -gc 12538 5000
will display the GC status of java with process number 12538 every 5 seconds.
jinfo use
After ps -ef | grep "" the corresponding thread number,
use the jinfo thread number to view the corresponding running environment of the thread
For specific reference
https://www.cnblogs.com/qmfsun/p/5601734.html
https://www.cnblogs.com/lizhonghua34/p/7307139.html