Before you begin
Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.Why and when to perform this task
The Runtime Performance Advisor tool provides advice to help tune systems for optimal performance. You can configure the Runtime Performance Advisor using the wsadmin tool or the administrative console. See the Using the Runtime Performance Advisor article for more information on how to enable this tool using the administrative console. The recommendations display as text in the SystemOut.log file.
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 RPAr will enable it automatically.
ThreadPools (module) Web Container (module) Pool Size Active Threads Object Request Broker (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
To enable the Runtime Performance Advisor tool using the wsadmin tool, perform the following steps:
Steps for this task (dependent on configuration)
set s1 [$AdminConfig getid /Node:wandNode51/Server:server1/] server1(cells/wandCell51/nodes/wandNode51/servers/server1:server .xml#Server_1) set pmis1 [$AdminConfig list PMIService $s1](cells/wandCell51/ nodes/wandNode51/servers/server1:server.xml#PMIService_1) $AdminConfig modify $pmis1 {{enable true}{initialSpecLevel beanModule=H:cacheModule=H:connectionPoolModule=H:j2cModule=H:jv mRuntime Module=H:orbPerfModule=H:servletSessionsModule=H:systemModule=H: threadPoolModule=H:transactionModule=H:webAppModule=H:webServicesModule= H:wlmModule=H:wsgwModule=H}} $AdminConfig save
s1 = AdminConfig.getid('/Node:wandNode51/Server:server1/', '[ server1(cells/wandCell51/nodes/wandNode51/servers/server1:server .xml#Server_1)]') print s1 pmis1 = AdminConfig.list('PMIService', s1, 'cells/wandCell51/ nodes/wandNode51/servers/server1:server.xml#PMIService_1') print pmis1 AdminConfig.modify(pmis1, [['enable', 'true'], ['initialSpecLevel', 'beanModule=H:cacheModule=H:connectionPoolModule=H:j2cModule=H:jv mRuntime Module=H:orbPerfModule=H:servletSessionsModule=H:systemModule=H: threadPoolModule=H:transactionModule=H:webAppModule=H:webServicesModule= H:wlmModule=H:wsgwModule=H']]) AdminConfig.save()
set perf [$AdminControl queryNames mbeanIdentifier=ServerRuleDriverMBean,process=server1,*] $AdminControl setAttribute $perf {{enable true}} $AdminControl invoke $perf reInit $AdminConfig save
perf = AdminControl.queryNames('mbeanIdentifier=ServerRuleDriverMBean,process=server1,*') AdminControl.setAttribute(perf, [['enabled', 'true']]) AdminControl.invoke(perf, 'reInit') AdminConfig.save()
What to do next
After completing the previous steps, start the server and monitor RPA.Related concepts
AdminControl object for scripted administration
Related reference
Commands for the AdminControl object
Related information
Using the Runtime Performance Advisor