![]() Previous |
![]() Next |
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, see the java
command reference pages for Windows or Solaris, Linux, and Mac OS X.