There are two ways to enable JFR with applets and WebStart applications:
1. use JAVA_TOOL_OPTIONS environment variable to specify JFR command line options
(.e.g. set JAVA_TOOL_OPTIONS=-XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:StartFlightRecording=duration=60s,filename=c:\test\recording.jfr).
2. specify JFR command line options in the Java Control Panel as runtime parameters for specific JRE.
Enabling JFR on per application basis (in JNLP file) is not supported.
1. use JAVA_TOOL_OPTIONS environment variable to specify JFR command line options
(.e.g. set JAVA_TOOL_OPTIONS=-XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:StartFlightRecording=duration=60s,filename=c:\test\recording.jfr).
2. specify JFR command line options in the Java Control Panel as runtime parameters for specific JRE.
Enabling JFR on per application basis (in JNLP file) is not supported.