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

Profile counters do not scale

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • tbd
    • None
    • hotspot
    • None

      Profile counters can cause severe performance degradation when several threads are executing the same code.

      This can be remedied by updating the shared profile counters less frequently, maintaining some thread-local counters. This will inevitably mean that generated profile code will be more complex and impose more runtime overhead, albeit overhead that does not rapidly rise with thread count. Therefore a different profiling mode would be needed, probably enabled by a command-line switch and perhaps a JMX control.

      Ref: "The Cost of Profiling in the HotSpot Virtual Machine" https://dl.acm.org/doi/10.1145/3679007.3685055

            aph Andrew Haley
            aph Andrew Haley
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: