Improve queue size computation in CPU-time sampler

XMLWordPrintable

    • jfr
    • b15

        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/

              Assignee:
              Johannes Bechberger
              Reporter:
              Johannes Bechberger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: