1、 jstat [-命令选项] [vmid] [间隔时间/毫秒] [查询次数]
2、类加载统计
1 | jstat -class 9675 |
3、编译统计
1 | jstat -compiler 9675 |
4、 垃圾回收统计
1 | jstat -gc 9675 1000 10 #每秒查询一次查询10次 |
5、堆内存统计
1 | jstat -gccapacity 9675 |
6、新生代垃圾回收统计/老年代垃圾回收统计
1 | jstat -gcnew 9675 |
7、新生代内存统计/老年代内存统计
1 | jstat -gcnewcapacity 9675 |
8、元数据空间统计
1 | jstat -gcmetacapacity 9675 |
参考 :https://www.jianshu.com/p/beb59929bbfc