Skip Headers
Previous
Previous
 
Next
Next

Creating a Flight Recording

This exercise demonstrates how to create a flight recording by using the flight recording wizard. In this exercise, we will create a profiling recording, a type of recording that provides runtime information over a preset period of time, going forward from when the recording commenced.

To create a basic profiling recording:

  1. In the Mission Control Browser, right-click the JVM instance you want to record.

    A context menu opens.

  2. Select Start Flight Recording.

    On the Wizard, the Continuous template should already be selected. (If this template is not selected, open the drop-down menu and select it.)


    Note:

    If you want to change any object type properties in this template, use the procedures outlined in "Modifying an Existing Template"


  3. Set the recording parameters, as follows:

    • In Filename:

      • Click Browse to open a file browser and navigate to your My Documents (or equivalent) folder.

      • In Filename on the file browser, type profilingRecording01.jfr.

      • Click Save to save the filename and close the file browser.

        Something similar to the following appears in Filename:

        C:\Documents and Settings\jschmitt\My Documents\profilingrecording01.jfr

    • In Name, type Profiling Recording 01.

    • If it is not already selected, select Time Fixed Recording and enter 90 s. This sets the length of the recording.

  4. Click Finish.

    The Recording Parameters dialog box closes and the recording starts. Profiling Recording 01 appears in the JVM browser and timer to the right of the recording name counts down the amount of time left in the recording.