命令格式jstat -gcutil pid interval(ms)
例如
##pid為1350的應(yīng)用的情況拍鲤,每1秒鐘顯示一次
$ jstat -gcutil 1350 1000
S0 S1 E O M CCS YGC YGCT FGC FGCT CGC CGCT GCT
0.00 96.60 44.74 2.44 98.65 96.50 5 0.065 0 0.000 2 0.002 0.067
0.00 96.60 44.74 2.44 98.65 96.50 5 0.065 0 0.000 2 0.002 0.067
0.00 96.60 44.74 2.44 98.65 96.50 5 0.065 0 0.000 2 0.002 0.067
0.00 96.60 44.74 2.44 98.65 96.50 5 0.065 0 0.000 2 0.002 0.067
縮寫 | 含義 | 原文 |
---|---|---|
S0 | 新生代中Survivor space 0區(qū)已使用空間的百分比 | Survivor space 0 utilization as a percentage of the space's current capacity. |
S1 | 新生代中Survivor space 1區(qū)已使用空間的百分比 | Survivor space 1 utilization as a percentage of the space's current capacity. |
E | 新生代已使用空間的百分比 | Eden space utilization as a percentage of the space's current capacity |
O | 老年代已使用空間的百分比 | Old space utilization as a percentage of the space's current capacity. |
M | 元空間 | Metaspace utilization as a percentage of the space's current capacity |
CCS | 壓縮類空間利用率為百分比 | Compressed class space utilization as a percentage |
YGC | YGC事件的數(shù)量 | Number of young generation GC events. |
YGCT | 年輕一代垃圾收集時(shí)間 | Young generation garbage collection time |
FGC | FGC事件的數(shù)量 | Number of full GC events. |
FGCT | 完全垃圾收集時(shí)間 | Full garbage collection time |
CGC |
并發(fā)GC統(tǒng)計(jì) | Concurrent GC Count |
CGCT |
并發(fā)GC收集時(shí)間 | Concurrent GC Collection Time |
GCT | 垃圾回收總時(shí)間 | Total garbage collection time. |
CGC和CGCT是ZGC的標(biāo)志鸽疾,ZGC是一個(gè)并發(fā)垃圾回收器宫纬。?ZGC (The Z Garbage Collector)是JDK 11中推出的一款低延遲垃圾回收器