Java Reference
In-Depth Information
Setting up a default recording like that can be useful in some circumstances, but for more
flexibility, all options can be controlled with jcmd during a run (assuming that the -
XX:+FlightRecorder option was specified in the first place).
To start a flight recording:
% jcmd process_id JFR.start [options_list]
The options_list is a series of comma-separated name-value pairs that control how the re-
cording is made. The possible options are exactly the same as those that can be specified on
the command line with the -XX:+FlightRecorderOptions= string flag.
If a continuous recording has been enabled, the current data in the circular buffer can be
dumped to a file at any time via this command:
% jcmd process_id JFR.dump [options_list]
The list of options includes:
name= name
The name under which the recording was started.
recording= n
The number of the JFR recording (see the next example for JFR.check ).
filename= path
The location to dump the file to.
It is possible that multiple JFR recordings have been enabled for a given process. To see the
available recordings:
% jcmd process_id JFR.check [verbose]
Recordings in this case are identified by the name used to begin them, as well as an arbitrary
recording number (which can be used in other JFR commands).
Finally, to abort a recording in process:
Search WWH ::




Custom Search