This appendix serves as a basic reference to the commands you can use with the JRockit Flight Recorder. It contains these sections:
Start-up Commands are the -X
and -XX
command-line options that you enter when you start a Java program. The specific JRockit Flight Recorder command-line options are:
These commands are described in the Oracle JRockit Command Line Reference, available on the Oracle Technology Network.
Note:
You should use-XX
options only if you have a thorough understanding of your system. If you use these commands improperly, you might affect the stability or performance of your system. -XX
options are subject to change at any time.This is a description of the Diagnostic Commands available to control JRockit Flight Recorder and the parameters available for each command. This information is also available by typing jrcmd <
pid
> help <
command
>
. The diagnostic commands associated with the JRockit Flight Recorder are:
These commands are described in the Oracle JRockit Command Line Reference, available on the Oracle Technology Network.
For more information on using jrcmd, see "Using jrmcd" in the Oracle JRockit JDK Tools.
The start_flightrecording
diagnostic command starts a flight recording. Table B-1 lists the parameters you can use with this command.
Table B-1 start_flightrecording
Parameter | Description | Type of value | Default |
---|---|---|---|
name |
Name of recording |
String |
|
settings |
Server-side template |
String |
|
defaultrecording |
Starts default recording |
Boolean |
False |
delay |
Delay start of recording |
Time |
0s |
duration |
Duration of recording |
Time |
0s (means "forever") |
filename |
Resulting recording filename |
String |
|
compress |
GZip compress the resulting recording file |
Boolean |
False |
maxage |
Maximum age of buffer data |
Time |
0s (means "no age limit") |
maxsize |
Maximum size of buffers in bytes |
Long |
0 (means "no max size") |
The check_flightrecording
diagnostic command checks running flight recordings. Table B-2 lists the parameters you can use with this command.
The stop_flightrecording
diagnostic command stops running flight recordings. Table B-3 lists the parameters you can use with this command.
The dump_flightrecording
diagnostic command dumps flight recordings. Table B-4 lists the parameters you can use with this command.