I want to run a Java application with JFR enabled. When I start my application as below
java -XX:+UnlockCommercialFeatures -XX:StartFlightRecording
I get the following error:
Unrecognized VM option 'UnlockCommercialFeatures'
Does OpenJDK 1.8.0_242 support Java Flight Recorder?
The build is 1.8.0_242-b07.
No it does not. As per the release notes for openjdk8u262, it is supported in OpenJDK 8 update 262.
New features - JDK-8223147: JFR Backport
Oracle open-sourced both Flight Recorder and Mission Recorder as sub-projects housed on the OpenJDK project. Builds available from vendors such as Azul Systems, Oracle, and others. Some may be free-of-cost, some may not; read the terms.
Azul Systems, Inc. is currently shipping their Zulu Community product built on OpenJDK. Java Flight Recorder and Mission Control are both included for Java 8 according to their feature matrix. See Download page.
Also included in their commercial product, Zulu Enterprise.
Or download separately Azul Mission Control.
Caveat: I have not used Flight Recorder with either Zulu. Just found it from some web searching.
By the way, Transport Layer Security (TLS) improvements are also being back-ported to Java 8.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With