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

Improve queue size computation in CPU-time sampler

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • 26
    • 26
    • hotspot
    • None
    • jfr

      Currently, the sampling queue size is unnecessarily large. For example, when running the Renaissance benchmark, most of the time the queue contains only one element. The current sizing of 500 (and higher for intervals < 10ms) wastes memory. But as a large queue size is still needed for worst-case benchmarks, I propose to start with a queue size of 20 and then scale it up if the queue overflows.

      More information on my proposal can be found at: https://mostlynerdless.de/blog/2025/08/25/java-25s-new-cpu-time-profiler-queue-sizing-3/

            Unassigned Unassigned
            jbechberger Johannes Bechberger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: