jstat ref

参考:https://docs.oracle.com/javase/8/docs/technotes/tools/unix/jstat.html

常用命令

jstat -gcutil $(pgrep java) 3000 10

-gcutil option
Summary of garbage collection statistics.

  • S0: Survivor space 0 utilization as a percentage of the space's current capacity.
  • S1: 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: Number of young generation GC events.
  • YGCT: Young generation garbage collection time.
  • FGC: Number of full GC events.
  • FGCT: Full garbage collection time.
  • GCT: Total garbage collection time.
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容