Generating performance statistics

Use Performance Monitoring Infrastructure (PMI) to generate statistics that can help you identify performance-related patterns on a running server. The pmiManager script generates statistics that you use to identify specific agents or events that are causing performance problems, such as bottlenecks.

About this task

You can review the statistics about your server in the comma-separated values (CSV) files that are generated. For each agent or event type that is monitored, a file is generated with the file names in the form of <event-type>.EventStats.csv or <event-type>.<agent-type>.AgentStats.csv. If the length of the file name exceeds 100 characters, the final name is truncated when you save the PMI statistics.

Procedure

  1. Add the <feature> monitor-1.0 </feature> feature to the server.xml file. A server.xml file is in each server home directory <WLP_USER_DIR>/servers/server_name.
  2. Run the pmiManager script from <InstallDir>/runtime/ia/bin. You must specify a polling period and the location to which you want to save the CSV files. For example, you can enter pmiManager monitor C:/output 10, where C:/output indicates the location to which you save your CSV files and 10 indicates a 10-second polling period.
  3. When your poll period is complete, review the statistics that are generated in the file location that you specify.

Example

The CSV files are created in the output directory. In a system that has five agents and three event types, the following files are generated:

  • AgentStatsCountSec_data.csv
  • AgentStatsCountSec_header.csv
  • AgentStatsCount_data.csv
  • AgentStatsCount_header.csv
  • AgentStatsTime_data.csv
  • AgentStatsTime_header.csv
  • AgentStats_data.csv
  • AgentStats_header.csv
  • creditcard.AccountInitialization.EventStats.csv
  • creditcard.AccountInitialization.MyCreditCardSolution_creditcard.Account.AgentStats.csv
  • creditcard.AccountInitialization.MyCreditCardSolution_creditcard.Customer.AgentStats.csv
  • creditcard.CheckAccount.CreditCardRules.AgentStats.csv
  • creditcard.CheckAccount.EventStats.csv
  • creditcard.Transaction.CreditCardRules.AgentStats.csv
  • creditcard.Transaction.EventStats.csv
  • creditcard.Transaction.mycreditcardsolution.creditcardjavaagent.MyAgent.AgentStats.csv
  • EventStatsCountSec_data.csv
  • EventStatsCountSec_header.csv
  • EventStatsCount_data.csv
  • EventStatsCount_header.csv
  • EventStatsTime_data.csv
  • EventStatsTime_header.csv
  • EventStats_data.csv
  • EventStats_header.csv

The following files are created in the results subdirectory.

  • AgentStats.csv
  • AgentStatsCount.csv
  • AgentStatsCountSec.csv
  • AgentStatsTime.csv
  • EventStats.csv
  • EventStatsCount.csv
  • EventStatsCountSec.csv
  • EventStatsTime.csv