【问题标题】:Specific meanings of jstat parameters : YGCT FGCT GCTjstat参数的具体含义: YGCT FGCT GCT
【发布时间】:2015-04-22 13:13:39
【问题描述】:

我需要使用 jstat 来测量程序的一些 GC 参数。 Jstat提供一组参数(S0C S1C S0U S1U EC EU OC OU MC MU CCSC CCSU YGC YGCT FGC FGCT GCT) 我对 YGCT、FGCT 和 GCT 的描述有点困惑。

(YGCT年轻代垃圾回收时间。
FGCT 完整的垃圾回收时间。
GCT 总垃圾收集时间。)

我有 2 个问题。

1) 这三个参数(YGCT、FGCT 和 GCT)实际测量的是什么?一个小的比较会很有帮助

2) 我怎么知道他们提到的时间单位? (毫秒/秒/....)

我参考了许多文档,包括

Interpreting jstat results
http://www.cubrid.org/blog/dev-platform/how-to-monitor-java-garbage-collection/
http://docs.oracle.com/javase/6/docs/technotes/tools/share/jstat.html#output_options
但这些并不能回答我真正的问题。
任何有过 jstat 经验的人都可以帮我解决这个问题吗?

谢谢。

【问题讨论】:

    标签: garbage-collection jstat


    【解决方案1】:
    • YGCT - 自 JVM 以来在年轻代收集中花费的秒数 开始
    • FGCT - 自 JVM 启动
    • GCT - 上述两个值的总和

    【讨论】:

    • 非常感谢您的澄清。这正是我想知道的。
    【解决方案2】:
        S0C – Current survivor space 0 capacity (KB).
        S1C  –  Current survivor space 1 capacity (KB).
        S0U – Survivor space 0 utilization (KB).
        S1U  – Survivor space 1 utilization (KB).
        EC    – Current eden space capacity (KB).
        EU    – Eden space utilization (KB).
        OC    – Current old space capacity (KB).
        OU    – Old space utilization (KB).
        PC     – Current permanent space capacity (KB).
        PU     – Permanent space utilization (KB).
        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.
    
    FGCT +YGCT = GCT
    FGCT /FGC = avg time taken per full gc cycle 
    YGCT / YGC = avg time taken per each young GC
    

    这些在您处理 GC 统计信息时很有用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-17
      • 2013-08-30
      • 1970-01-01
      • 2011-11-18
      相关资源
      最近更新 更多