Java Reference
In-Depth Information
Enabling JFR via the command line
After enabling JFR (with the -XX:+FlightRecorder option), there are two ways to control
how and when the actual recording should happen. The recording parameters can be con-
trolled when the JVM starts by using the -XX:+FlightRecorderOptions= string paramet-
er; this is most useful for reactive recordings. The string in that parameter is a list of
comma-separated name-value pairs taken from these options:
name= name
The name used to identify the recording.
defaultrecording= <true|false>
Whether to start the recording initially. The default value is false ; for reactive analysis,
this should be set to true .
settings= path
Name of the file containing the JFR settings (see next section).
delay= time
The amount of time (e.g., 30s , 1h ) before the recording should start.
duration= time
The amount of time to make the recording.
filename= path
Name of the file to write the recording to.
compress= <true|false>
Whether to compress (with gzip) the recording; the default is false .
maxage= time
Maximum time to keep recorded data in the circular buffer.
maxsize= size
Maximum size (e.g., 1024K , 1M ) of the recording's circular buffer.
Search WWH ::




Custom Search