(another) NPE when processing -prof gc results

Trask Stalnaker trask.stalnaker at gmail.com
Sun Apr 12 01:20:27 UTC 2015


Hi,

I ran into 7901374: NPE when processing -prof gc results

and built latest JMH which fixed that one, but revealed another:

Exception in thread "main" java.lang.NullPointerException
        at
org.openjdk.jmh.results.format.JSONResultFormat.writeOut(JSONResultFormat.java:122)
        at
org.openjdk.jmh.results.format.ResultFormatFactory$1.writeOut(ResultFormatFactory.java:50)
        at org.openjdk.jmh.runner.Runner.internalRun(Runner.java:315)
        at org.openjdk.jmh.runner.Runner.run(Runner.java:203)
        at org.openjdk.jmh.Main.main(Main.java:69)

I added some logging and it was looking for gc.churn.{PS Old Gen}.norm
which didn't exist in the secondary results map for a particular
IterationResult.

Thanks,
Trask


More information about the jmh-dev mailing list