GCProfiler enhancement ideas

Jens Wilke jw_list at headissue.com
Mon Apr 18 16:15:14 UTC 2016


Hi,

some metrics I would like to see (and do) in the GCProfiler:

# maximumUsedAfterGc

The maximum used heap size after a GC run over all GC events. That's not particular interesting for
microbenchmarks, but for benchmarking libraries I'd like to have some rough metrics about the absolute
memory consumption. It gives useful information, here is a protoype:
https://github.com/cache2k/cache2k-benchmark/blob/master/jmh-suite/src/main/java/org/cache2k/benchmark/jmh/GcProfiler.java

# gc.churnSum (or gc.churn.total?)

Currently the churn is added by space. I think the space names can be different depending on the configuration.
What about adding the total as a result metric that has a constant name? This way we don't have to change the
analysis after a GC configuration change.

# gc.count.<type>

Here it's the other way around. Currently, there is only a total count of all GC events. What about adding separate 
counts per GC type (if that is reported meaningful via the notification)? 

Thoughts? Should I prep a patch? (OCA is signed)

Cheers,

Jens

-- 
"Everything superfluous is wrong!"

   // Jens Wilke - headissue GmbH - Germany
 \//  https://headissue.com


More information about the jmh-dev mailing list