Jump to Content
  Previous Next
Content starts here

Starting a Recording with jrcmd

  1. Make sure that your application is running and is under load.
  2. If you run the application without stress, the data captured from that application will not show where there is room for improvements.

  3. Use one of the following commands to initiate a recording:
  4. Windows platforms:

    bin\jrcmd.exe <pid> jrarecording time=<jrarecording time> filename=<filename>

    Unix platforms:

    bin/jrcmd <pid> jrarecording time=<jrarecording time> filename=<filename>

    Where the arguments are:

    • jrarecording time-the duration of the recording in seconds (a good length is 300 seconds, i.e., five minutes).
    • filename-the name of the file you want to save the recording to (for example jrarecording.xml.zip). The file will be created in the current directory of the JRockit process. It will be overwritten if it already exists.
    • For example:
      bin\jrcmd.exe <pid> jrarecording time=300 filename=c:\temp\jra.xml.zip
      Starts a JRA recording of 300s and stores the result in the specified file.

      After the recording is initiated, BEA JRockit prints a message indicating that the recording has started. When the recording is done, it will print another message; it is now safe to shut down your application.

  Previous Next