Administration guide > Monitor the environment > Monitoring with WAS PMI
Retrive PMI statistics
By retrieving PMI statistics, you can see the performance of the eXtreme Scale applications.
Before you begin
- Enable PMI statistics tracking for your environment. See Enable PMI for more information.
- The paths in this task are assuming you are retrieving statistics for the sample application, but you can use these statistics for any other application with similar steps.
- If you are using the administrative console to retrieve statistics, be able to log in to the administrative console. If you are using scripting, be able to log in to wsadmin.
You can retrieve PMI statistics to view in Tivoli Performance Viewer by completing steps in the administrative console or with scripting.For more information about the statistics that can be retrieved, see PMI modules.
Procedure
- Retrieve PMI statistics in the administrative console.
- In the administrative console, click Monitoring and tuning > Performance viewer > Current activity
- Select the server that to monitor using Tivoli Performance Viewer, then enable the monitoring.
- Click the server to view the Performance viewer page.
- Expand the configuration tree. Click ObjectGrid Maps > clusterObjectGrid select employees. Expand ObjectGrids > clusterObjectGrid and select DEFAULT.
- In the ObjectGrid sample application, go to the ObjectGridCreationServlet servlet , click button 1, then populate maps. You can view the statistics in the viewer.
- Retrieve PMI statistics with scripting.
- On a command line prompt, navigate to the was_root/bin directory. Type wsadmin to start the wsadmin tool.
- Set variables for the environment using the following commands:
wsadmin>set perfName [$AdminControl completeObjectName type=Perf,*] wsadmin>set perfOName [$AdminControl makeObjectName $perfName] wsadmin>set mySrvName [$AdminControl completeObjectName type=Server, name=APPLICATION_SERVER_NAME,*]
- Set variables to get mapModule statistics using the following commands:
wsadmin>set params [java::new {java.lang.Object[]} 3] wsadmin>$params set 0 [$AdminControl makeObjectName $mySrvName] wsadmin>$params set 1 [java::new java.lang.String mapModule] wsadmin>$params set 2 [java::new java.lang.Boolean true] wsadmin>set sigs [java::new {java.lang.String[]} 3] wsadmin>$sigs set 0 javax.management.ObjectName wsadmin>$sigs set 1 java.lang.String wsadmin>$sigs set 2 java.lang.Boolean
- Get mapModule statistics using the following command:
wsadmin>$AdminControl invoke_jmx $perfOName getStatsString $params $sigs
- Set variables to get objectGridModule statistics using the following commands:
wsadmin>set params2 [java::new {java.lang.Object[]} 3] wsadmin>$params2 set 0 [$AdminControl makeObjectName $mySrvName] wsadmin>$params2 set 1 [java::new java.lang.String objectGridModule] wsadmin>$params2 set 2 [java::new java.lang.Boolean true] wsadmin>set sigs2 [java::new {java.lang.String[]} 3] wsadmin>$sigs2 set 0 javax.management.ObjectName wsadmin>$sigs2 set 1 java.lang.String wsadmin>$sigs2 set 2 java.lang.Boolean
- Get objectGridModule statistics using the following command:
wsadmin>$AdminControl invoke_jmx $perfOName getStatsString $params2 $sigs2
Results
You can view statistics in the Tivoli Performance Viewer.
Parent topic:
Monitor with WAS PMI