Use the Performance Measurement tool to generate reports
to help you analyze your cache settings and performance. By generating
and analyzing these reports, you can change your caching to improve
your cache performance.
Before you begin
Ensure that can complete the following tasks in your environment:
- Configure the size of log files
- Configure the log level of which layer to measure and at which
depth.
- Analyze the logs that are produced by the server administrator
and identify potential improvements.
About this task
To run the Performance Measurement tool to generate reports,
you use a command-line utility run the batch file that calls the tool.
This file contains the details for the report that you want to generate.
For example, the file can include the following information:
- The list of log files to analyze
- The location in which to store the reports
- The type of reports to produce
The tool uses a Cloudscape database to store and aggregate metric
data. This database is provided with all versions of WebSphere Commerce
for use with only the Performance Measurement tool. You do not need
to install this database as the JAR files for this database are included
by default in the following directory.


WC_installdir\performance\lib
WC_installdir\performance\lib
The database is also configured by default to work with the Performance
Measurement tool and is created when you run the Performance Measurement
tool.
Procedure
- Optional: If you want to run the Performance
Measurement tool in your production environment, configure the tool
to point to the trace.log file. In a development
environment, the location for this file does not change and is configured
by default for the tool.
- Go to the following directory.


WC_installdir\performance\config
WC_installdir\performance\config
- Open the following properties file for editing:
- runtime-analysis.properties
analysis.properties
- Update the values for the properties in this file to
configure how the tool generates reports.
Specifically,
update value for the logFileToLoadList
property.
If you are specifying multiple log files, separate the files with
the '|'
character. Your log files are generated by
logging frameworks such as Java Logging and Log4J. If you include
any log file that is not related to performance metrics, the tool
ignores the file.
For information about the properties that you
can configure, review the comments for each property within the
analysis.properties file.
- Save and close the file.
- Configure your logging. The Performance Measurement tool
uses the log files for your site to gather metric data for generating
the reports.
- Open the WebSphere Application Server administration
console.
- Expand Troubleshooting and click Logs
and trace.
-
Click the server for which you want to enable tracing. The logging and tracing options for
the server display.
-
Click Diagnostic Trace. The Diagnostic Trace
Service window displays in the workspace.
-
Click the Configuration or Runtime tab.
Changes made to Configuration are stored on the file system and applied
when the server starts. You must restart the server to pick up any changes. Change the log detail
levels in this tab to find issues that originate or occur when the server is initiated.
Modifications to the Runtime log detail levels are applied immediately and
are lost after the server is restarted.
-
Select Change Log Detail Levels.
-
Expand . The loggers that the Performance Measurement tool uses are within the
com.ibm.commerce.foundation.logging.service.* package.
-
Select to enable the entire
com.ibm.commerce.foundation.logging.service.* package or select the
individual logging layers that you want to enable or disable within this package. For more
information about the individual logging layers, see Performance measurement loggers.
- Click to apply the changes to your server. If you selected
to change the log details levels on the Configuration tab,
restart your server.
- Reproduce the scenario that needs to be measured
by running an operation or performance test. When you reproduce the
scenario, the metric data is recording in the log files, which the
Performance Measurement tool gathers when you generate a report.
- Run the tool with a command-line utility to
generate the performance reports.
- Open a command-line utility and go the following directory:


WC_installdir/bin
WC_installdir\bin
WCDE_installdir\bin
- Run the following command:


generatePerformanceReport.sh

generatePerformanceReport.bat
When you run the tool, the following reports generate:
- Analyze the generated reports to identify the
processes where the cache settings can be improved.
What to do next
Configure your caching, or make design or architectural
changes that are based on your analysis to improve performance.