14.7.3 Using the Runtime Performance Advisor

In order to obtain advice, first enable the performance monitoring service through the Administrative Console and restart the server. If running ND, enable the PMI service on both the appservers and on the Node Agent and restart the servers and Node Agent. In WebSphere Application Server V6, PMI is enabled by default on the servers and on the Node Agent(s).

The Runtime Performance Advisor enables the appropriate monitoring counter levels for all enabled advice. If there are specific counters that are not wanted, disable the corresponding advice in the Runtime Performance Advisor panel, and disable unwanted counters. See 14.2.5, Enabling the PMI service for details. Then...

1. In the WAS console select Servers -> Application servers.

2. Click <AppServer_Name> -> Runtime Performance Advisor Configuration.

3. On the Configuration tab select the Number of processors.

Selecting the appropriate settings for the system's configuration ensures accurate performance advice.

4. Optionally, select the Calculation Interval and the Maximum warning sequence.

5. Click Apply and Save your changes.

6. Select the Runtime tab and click Restart.

7. Simulate a production level load.

For load testing tools and how to perform the load testing, see 17.3, Tools of the trade.

If you are using the Runtime Performance Advisor in a test environment, or doing any other tuning for performance, simulate a realistic production load for your application. The application should run this load without errors. This simulation includes the number of concurrent users typical for peak periods, and drives system resources, such as CPU and memory to the levels expected during peak production periods. The Performance Advisor can provide some type of advice only when the CPU utilization exceeds a sufficiently high level. For example, advice on thread pool size is only issued if there is a problem with it (which can usually only be detected when the system is under load). Other types of advice, however, are always issued, for example advice related to the Prepared statement cache or the Servlet Session module.

8. Once a stable production level load is reached, select the check box to Enable the Runtime Performance Advisor. This way, you will achieve the best results for performance tuning. Click OK.

9. Select Warning in the Administrative Console under Troubleshooting -> Runtime Messages or look at the SystemOut.log file, located in the <install_root\logs\servername> directory to view tuning advice. Some messages are not issued immediately.

10. Change your appserver configuration based on the received advice.

Important: As with any analysis and tuning, make sure that only one parameter is changed, and then the results monitored. This provides an effective method of backing out of the change if it proves detrimental to the environment. Also, making multiple changes could result in undesired results, because many options are dependent on other settings.

Although the Performance Advisors attempt to distinguish between loaded and idle conditions, misleading advice might be issued if the advisor is enabled while the system is ramping up or down. This result is especially likely when running short tests. Although the advice helps in most configurations, there might be situations where the advice hinders performance. Due to these conditions, advice is not guaranteed. Therefore, test the environment with the updated configuration to ensure it functions and performs as expected.

Tips for using the Runtime Performance Advisor:

- Enable PMI in the appserver and in the Node Agent if running ND.

- Be sure to configure the correct number of processors.

- Simulate a production level load.

Ensure the application runs without exceptions/errors.

Runtime Performance Advisor only provides advice when CPU utilization is high.

- Once production load level is reached, enable the Runtime Performance Advisor.

- Apply advice, restart the appserver, and re-test.

- More details can be found in the WebSphere InfoCenter section "Using the Runtime Performance Advisor".

Next