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

Print CPU usage times for GC threads at VM exit in G1

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • hs25, 8
    • hotspot
    • gc

      Garbage collection, particularly G1, uses many, partially concurrent, threads to perform its work.

      Particularly for the concurrent threads it is almost impossible to gauge their CPU usage without external tools which people typically do not use. Having this information would help to find the reasons for the experienced performance level in addition to find high CPU users and give tuning advice.

      At least in Unix environments this information could be easily retrieved from the OS at VM exit.

      The task is to provide this per-gc thread time usage information (usr/sys/real) in the logs at some logging level (e.g. at least PrintGCDetails).
      Also consider providing a per group report (refinement, marking, gc worker, other).

        1. 8027759-count-cpu-time
          4 kB
          Thomas Schatzl
        2. cpu-time
          15 kB
          Thomas Schatzl

            Unassigned Unassigned
            tschatzl Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: