jstat之gcutil数据解析

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

jstat之gcutil数据解析

今天刚好用到jstat来查看java应用内存情况,发现数据参数和以前的不太一样,主要是因为环境是java8,java8多了个点东西,比如Metaspace。

例子:

##pid为4007的应用的情况,每2秒钟显示一次
jstat -gcutil 4007 2000

S0     S1     E      O      M     CCS    YGC     YGCT    FGC    FGCT     GCT
 37.03   0.00  20.87  86.82  94.40  89.37   1640    9.248     6    0.658    9.907

S0: Survivor space 0 utilization as a percentage of the space's current capacity. 幸存者区0

S1: Survivor space 1 utilization as a percentage of the space's current capacity. 幸存者区1

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: Number of young generation GC events. 年轻一代GC事件的数量。

YGCT: Young generation garbage collection time. 年轻一代垃圾收集时间

FGC: Number of full GC events. 完整的GC事件的数量。

FGCT: Full garbage collection time. 完全垃圾收集时间。

GCT: Total garbage collection time. 垃圾回收总时间。

详情可以看官方文档,自己翻译去: https://docs.oracle.com/javase/8/docs/technotes/tools/unix/jstat.html

转载于:https://my.oschina.net/110NotFound/blog/3005717

你可能感兴趣的:(jstat之gcutil数据解析)