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.

你可能感兴趣的:(jstat ref)