Java jvm 性能查看工具 jstat

jstat 官网: https://docs.oracle.com/javase/6/docs/technotes/tools/share/jstat.html

jstat 依赖jps 
1.jps 查询进程号

2.jstat 查看gc的使用情况

jstat -gcutil 5235 1000 7

S0:代表第一个幸存区

S1:代表第二个幸存区

E:代表伊甸园区

O: 代表老年代

M:代表方法区

CCS:压缩空间类

YGC:年轻代垃圾回收的次数

YGCT: 年轻代垃圾回收的时间

FGC:老年代垃圾回收的次数

FGCT:老年代垃圾回收的时间

GCT:垃圾回收消耗的时间

常见jstat 使用命令

jstat -gc pid

jstat -gccapacity pid

jstat -gcutil pid

jstat -gcnew pid

jstat -gcnewcapacity pid

jstat -gcold pid

jstat -gcoldcapacity pid

jstat -gc permcapacity pid

jstat -class pid

jstat -compiler pid

jstat -printcompilation pid

猜你喜欢

转载自blog.csdn.net/u011243684/article/details/84789134