Save performance data to a log file

You can save all performance data from Tivoli Performance Viewer in a log file and write the data in binary format (serialized Java objects) or XML format.

To enable logging, follow these steps:

  1. Click Logging --> On or click the Logging icon.

  2. Specify a name for the log file. You can save the log file in binary format with the PERF file extension, or in XML format. The XML files are compatible with vendor software.

    Note: The *.perf files may not be compatible between fix levels of WebSphere Application Server.

  3. Click OK.

To disable logging click Logging --> Off or click the Logging icon.

A log file is only generated if you enable logging. By default, this data is written to this file on your workstation:

C:\product_installation_directory\logs\tpv_mmdd_hhmm.xml

where mmdd is the month and date, and hhmm is the hour and minute.

The log file is not updated, but remains available for you to replay the collected data. For information on how to replay a log file, see Replaying a performance data log file. Go to Help documentation Replaying the performance data log file does not have an effect on the WebSphere Application Server environment.

Example

This is an example of an XML log file:

<?xml version="1.0"?>
<RALog version="5.0">
  <RAGroupSnapshot time="1019743202343" numberGroups="1">
    <CpdCollection name="root/myDir/Default Server/jvmRuntimeModule"
        level="7">
      <CpdData name="root/myDir/Default Server/jvmRuntimeModule/jvmRuntimeModule.total/Memory"
          id="1">
        <CpdLong value="39385600" time="1.019743203334E12"/>
      </CpdData>
      <CpdData name="root/myDir/Default Server/jvmRuntimeModule/jvmRuntimeModule.freeMemory"
          id="2">
        <CpdLong value="4815656" time="1.019743203334E12"/>
      </CpdData>
      <CpdData name="root/myDir/Default Server/jvmRuntimeModule/jvmRuntimeModule.usedMemory"
          id="3">
        <CpdLong value="34569944" time="1.019743203334E12"/>
      </CpdData>
    </CpdCollection>
  </RAGroupSnapshot>
</RALog>