HP

HPjmeter 4.1 User's Guide

English
  HPjmeter 4.1 User's Guide > Chapter 4 Monitoring Applications   

Saving Monitoring Metrics Information

HPjmeter offers two methods to save monitoring metrics information to a file.

  • If you know in advance that you want to capture information for an entire application session, you can run the JVM agent monitor_batch option when you start the application. See JVM agent option monitor_batch[:file=filename].

    When you save information using the monitor_batch option, the information is captured from the start of the application session in a file on the managed node. To stop capturing information, stop your application. For more information, see monitor_batch[:file=filename].

  • If you want to capture information from the start of the console session to the current time, click File->Save as to name the saved data file. For details, see Saving Data from the Console

Each of these methods saves metrics information that you can later load into the console using the Open File button or menu option., or dragging and dropping the file onto the console.

You can use these data files to capture information from live sessions to review later or to send to a development team to show the state of your application.

NOTE: Saved data files can be quite large. If you expect to keep the files or you plan to transfer the files, compress the files for speedier transfer.

Compressing the files also reduces the chances that the file could be corrupted during a transfer. You can compress various profile data files; for example: .vgc, .hprof (ascii text and binary format), .eprof, and .hpjmeter. The preferred compression format is gzip. HPjmeter 4.1 and higher can read gzip compressed files, without having to expand them.

Saving Data from the Console

When you save information using the Save as button from the console, the information from the start of the console session is saved in a file on the system running the console.

In addition, you can save information from any cached session available on the console.

To save information as a console snapshot:

  1. Go to the console main window.

  2. Select a live or cached session node from the data tree.

  3. Click File->Save as from the main window tool bar.

    This opens the file chooser that allows you to specify where to save the file.

  4. In the file chooser, select the directory in which you want to save the snapshot file.

  5. Specify the snapshot file name.

    The file chooser automatically appends the extension .hpjmeter to your file name.

    To prevent adding the file name extension, use double quotes to surround the file name.

  6. Click Save.

    HPjmeter writes the session information to the file.

NOTE: When you close the console, HPjmeter checks for session data that has not yet been saved. You are given an opportunity to save collected data, but you can choose not to do so.

If you typically do not save monitoring session data, you can turn this checking function off by selecting Edit->Window Preferences-> and unchecking Confirm save when closing the main window.