JDK 21 comes with a new method that gives the total allocated rate for all the threads, JDK-8304074. JMH -prof gc can use it, when available.
- relates to
-
JDK-8304074 [JMX] Add an approximation of total bytes allocated on the Java heap by the JVM
- Resolved
- links to
-
Review openjdk/jmh/106