Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8151674

STW phases at Concurrent GC should count in PerfCounter

XMLWordPrintable

    • gc
    • b115
    • Fix failed

      http://mail.openjdk.java.net/pipermail/hotspot-gc-dev/2016-March/016774.html
      http://mail.openjdk.java.net/pipermail/hotspot-gc-dev/2016-March/016896.html

      I wonder that STW phases (Remark and Cleanup) at G1 are not counted in jstat FGC column.
      For example, Initial Mark and Remark at CMS are counted as FGC.
      We discussed on hotspot-gc-dev for this issue, and I proposed to add new PerfCounter for CGC STW phases.

      We can override jstat_options if we want to watch CGC counters.
      Also we can check it through PerfCounter.print jcmd.

      * hotspot: http://cr.openjdk.java.net/~ysuenaga/JDK-6291341/poc-2/hotspot/
      * jdk: http://cr.openjdk.java.net/~ysuenaga/JDK-6291341/poc-2/jdk/

      For compatibility, this patch works the same as the current by default.
      If you set -XX:+EnableConcGCPerfCounter, CGC counter will work fine.
      (I want to set +EnableConcGCPerfCounter by default)

            ysuenaga Yasumasa Suenaga
            ysuenaga Yasumasa Suenaga
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: