Retrieving PMI statistics

By retrieving PMI statistics, you can see the performance of your eXtreme Scale applications.

Before you begin

  • Enable PMI statistics tracking for your environment. See Enabling 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, you must be able to log in to the administrative console. If you are using scripting, you must be able to log in to wsadmin.

About this task

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.
    1. In the administrative console, click Monitoring and tuning > Performance viewer > Current activity
    2. Select the server that you want to monitor using Tivoli Performance Viewer, then enable the monitoring.
    3. Click the server to view the Performance viewer page.
    4. Expand the configuration tree. Click ObjectGrid Maps > clusterObjectGrid select employees. Expand ObjectGrids > clusterObjectGrid and select DEFAULT.
    5. 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.
    1. On a command line prompt, navigate to the was_root/bin directory. Type wsadmin to start the wsadmin tool.
    2. 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,*]
      
    3. 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
    4. Get mapModule statistics using the following command:
      wsadmin>$AdminControl invoke_jmx $perfOName getStatsString $params $sigs
      
    5. 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
      
    6. 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.