-2

I just read about Java Flight Recording and figured out that it's a commercial feature. Since it's enabled by -XX:+UnlockCommercialFeatures -XX:+FlightRecorder. so the question is if it's possible for me to use it in our production environment for profiling. I use

java -version
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)

Or it is illegal to do so?

Kire Haglin
  • 6,569
  • 22
  • 27
Some Name
  • 8,555
  • 5
  • 27
  • 77

1 Answers1

1

Java Flight Recorder requires a commercial license for use in production

https://docs.oracle.com/javacomponents/jmc-5-4/jfr-runtime-guide/about.htm#JFRUH170

so yes, it's likely illegal.

maio290
  • 6,440
  • 1
  • 21
  • 38
  • 2
    **Update:** No longer requires a fee. Oracle open-sourced both [*Flight Recorder*](https://openjdk.java.net/jeps/328https://openjdk.java.net/jeps/328) and [*Mission Recorder*](https://en.wikipedia.org/wiki/JDK_Mission_Control) as sub-projects housed on the [*OpenJDK*](https://openjdk.java.net) project. Builds available from vendors such as Azul Systems, Oracle, and others. – Basil Bourque Jul 16 '20 at 21:34