Network Deployment (Distributed operating systems), v8.0 > Scripting the application serving environment (wsadmin) > Troubleshoot with scripting


Enable the Runtime Performance Advisor tool using scripting

We can configure the Runtime Performance Advisor (RPA) using wsadmin or the admin console. See the starting the wsadmin scripting client information.

The RPA provides advice to help tune systems for optimal performance. See the using the Runtime Performance Advisor information on how to enable this tool using the admin console. The recommendations display as text in the SystemOut.log file.

New feature: Beginning in WAS v8.0 you can configure the server to use the HPEL log and trace infrastructure instead of using SystemOut.log , SystemErr.log, trace.log, and activity.log files or native z/OS logging facilities. If you are using HPEL, you can access all of your log and trace information using the LogViewer command-line tool from your server profile bin directory. See the information about using HPEL to troubleshoot applications for more information on using HPEL.New feature:

The processing of RPA is governed by various rules and corresponding rule IDs. The following table summarizes the mapping between rule IDs and the advice the RPA would process.

Rule IDs and nature of advice.

This table maps rule IDs to the nature of advice process by the RPA.

Rule ID Nature of Advice
ServerRule01 No room for new sessions rule
ServerRule02 Live session
ServerRule03 Session read and write size
ServerRule04 Session read and write time
ServerRule05 Servlet engine unbounded rule
ServerRule06 Servlet engine thread pool rule
ServerRule07 ORB unbounded
ServerRule08 ORB pool rule
ServerRule09 DataSource connection pool min and max size rule
ServerRule10 DataSource prepared statement discard rule
ServerRule11 Memory leak detection rule
surgeModeAlert Surge mode rule
poolLowEffAlert Pool low percent efficiency rule
hungConnModeAlert Hung connection alert rule
connLowEffAlert Connection low percent efficiency rule
connErrorAlert Connection error alert rule
LTCSerialReuseViolationAlert LTC serial reuse violation alert rule
LTCNestingAlert LTC nesting rule
LTCConnPerThreadLimitAlert LTC connection per thread limit rule
multiThreadUseViolationAlert Multi-thread use JCA programming Model Violation
xComponentUseViolationAlert Cross component use JCA programming model violation

The Runtime Performance Advisor (RPA) requires that the Performance Monitoring Service (PMI) is enabled. It does not require that individual counters be enabled. When a counter that is needed by the RPA is not enabled, the RPA will enable it automatically.

There is no MBean/object available for wsadmin to create a RPA configuration. We can use wsadmin to change the settings and make them effective at runtime. These changes will not be persisted. The changes remain until you stop the server. Since the RPA is disabled once you stop the server, you may want to disable the PMI Service or the counters that were enabled while it was active. We can enable the following counters using the Runtime Performance Advisor:

ThreadPools (module)
Web Container (module)
Pool Size
Active Threads
ORB (module)
Pool Size
Active Threads
JDBC Connection Pools (module)
Pool Size
Percent used Prepared Statement Discards
Servlet Session Manager (module)
External Read Size
External Write Size
External Read Time
External Write Time
No Room For New Session
System Data (module)
CPU Utilization
Free Memory

The following provides an explanation for some of the settings that you can use:

To enable the Runtime Performance Advisor tool using wsadmin.sh, perform the following steps:


Procedure

Setup the Runtime Performance Advisor (RPA), for example:


What to do next

After completing the previous steps, start the server and monitor RPA.
Performance and Diagnostic Advisor
Use the wsadmin scripting AdminControl object for scripted administration
Use HPEL to troubleshoot applications


Related


Commands for the AdminControl object using wsadmin.sh
Use the Performance and Diagnostic Advisor
Start the wsadmin scripting client using wsadmin.sh

+

Search Tips   |   Advanced Search