Java 17: Unrecognized VM option 'TraceClassLoading' when 'printCompilationInfo=true'

Petr Janeček JanecekPetr at seznam.cz
Tue Feb 8 23:54:08 UTC 2022


Hello!

On Java 17 using JMH 1.34, if I run

java -jar target/benchmarks.jar -prof dtraceasm:printCompilationInfo=true




the process fails with:

Unrecognized VM option 'TraceClassLoading'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.


I believe `-XX:+TraceClassLoading` is no longer there in Java 17:

https://chriswhocodes.com/hotspot_options_openjdk8.html?s=TraceClassLoading




Thanks,

PJ


More information about the jmh-dev mailing list