Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does OpenJDK 1.8.0_242 support Java Flight Recorder?

Tags:

java

jfr

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.

like image 685
Krishan Avatar asked Nov 03 '25 15:11

Krishan


2 Answers

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

like image 193
djpanda Avatar answered Nov 06 '25 06:11

djpanda


Now open-source

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.

Back-ported to Java 8 by Azul Systems

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.

like image 22
Basil Bourque Avatar answered Nov 06 '25 05:11

Basil Bourque



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!