This chapter provides instructions for quickly starting up Java Flight Recorder and creating your first recording.
This chapter contains the following sections:
The simplest way to control Java Flight Recorder is by using the Java Mission Control Client. Java Mission Control Client is a tools suite that you can use to monitor, manage, and profile your Java application, without introducing the performance overhead normally associated with these types of tools. For more information about Java Mission Control, see Introduction to Oracle JRockit Mission Control at
http://docs.oracle.com/cd/E15289_01/doc.40/e15067/intro.htm
Start Java Mission Control Client from the command line by entering:
JAVA_HOME/bin/jmc (or JAVA_HOME\bin\jmc.exe
When Java Mission Control Client launches, a list of all the JVMs running on the system appears in the JVM Browser.
Choose the JVM for which you want to create a recording and right-click to open a context menu.
From the context menu, select Start Flight Recording
The Start Flight Recording dialog box appears.
Use the Start Flight Recording dialog box to specify key recording parameters. Complete this dialog box by doing the following:
Choose the recording template (for more information on templates, see Section 4.2, "Flight Recording Templates").
Set recording time (the duration of the recording) by selecting Time fixed recording and entering a duration in Recording Time.
See Figure 2-1.
Click Finish to start the recording. You can follow the progress of the recording at the bottom of the Java Mission Control window in the status bar. You can also open the Progress View (see Figure 2-2). The Remaining column indicates the amount of time left before the recording terminates.
Once the recording has finished it will open automatically in JRockit Mission Control Client and you can analyze the results.
Usually, a recording will continue for the length of time specified in the Start Flight Recording wizard. If you want to terminate a recording before the specified time elapses, do one of the following:
In the JVM Browser view, right-click the recording and select Stop.
In the Progress View, click the stop button (the red squre).
The recording will stop and open automatically in Java Mission Control, showing all data collected up to the termination point.
For additional information on using the Flight Recorder GUI, refer to the online help that is installed with the product.