Example: Configuring a Performance Manager Infrastruture service using wsadmin
Use the following example to configure the Performance Manager Infrastructure (PMI) service for an application server:
- Identify the application server and assign it to the server variable, for example:
set server [$AdminConfig getid /Cell:mycell/Node:mynode/Server:server1/]Example output:server1(cells/mycell/nodes/mynode/servers/server1:server.xml#Server_1)- Identify the PMI service that belongs to the server and assign it to the pmi variable, for example:
set pmi [$AdminConfig list PMIService $server]Example output:(cells/mycell/nodes/mynode/servers/server1:server.xml#PMIService_1)- Modify the attributes, for example:
$AdminConfig modify $pmi {{enable true} {initialSpecLevel beanModule=H:cacheModule=H:connectionPoolModule=H:j2cModule=H:jvmRuntimeModule=H:orbPerfModule=H:servletSessionsModule=H:systemModule=H:threadPoolModule=H:transactionModule=H:webAppModule=H:webServicesModule=H:wlmModule=H:wsgwModule=H}}This example enables PMI service and sets the specification levels for all of components in the server. The following are the valid specification levels for the components:
N represents none L represents low M represents medium H represents high X represents maximum - Save the changes with the following command:
$AdminConfig save