Skip Headers
Previous
Previous
 
Next
Next

Enabling Java Flight Recorder

By default, JFR is disabled in the JVM. To enable JFR, you must launch your Java application with the -XX:+FlightRecorder option. Because JFR is a commercial feature, available only in the commercial packages based on Java Platform, Standard Edition (Oracle Java SE Advanced and Oracle Java SE Suite), you also have to enable commercial features using the -XX:+UnlockCommercialFeatures options.

For example, to enable JFR when launching a Java application named MyApp, use the following command:

java -XX:+UnlockCommercialFeatures -XX:+FlightRecorder MyApp

For more information about these and other options of the java command, see the reference pages at http://docs.oracle.com/javase/8/docs/technotes/tools/unix/java.html (Solaris, Linux, OS X)
http://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html (Windows)