Home
Get a list of server statistics
Use administrative commands to retrieve server statistics.
Use wsadmin
To get a list of server statistics...
- To see a list of server statistics, open a Web browser and access the Activities feature, providing the required authentication credentials.
- After logging in, go to the following Web address:
http://<servername.com:port>/activities/service/html/serverstatswhere <servername.com:port> is the host name and port number for your server.
- Open a command window and start the wsadmin command line tool. See Starting wsadmin for more details.
- Start the Activities Jython script interpreter.
- Access the Activities configuration file:
- Stand-alone deployment:
execfile("activitiesAdmin.py")
- Network deployment:
execfile("profile_root/config/bin_lc_admin/activitiesAdmin.py")
If prompted to specify which server to connect to, type the number associated with the server representing the node that you want to change. For example, in a cluster with two nodes, the following might be displayed:
1: WebSphere:cell=tdilx104Cell01,name=ActivityService,node=tdilx103, process=server1 2: WebSphere:cell=tdilx104Cell01,name=ActivityService,node=tdilx104Node01, process=server1 Which service do you want to connect to?If you want to make the change to the tdilx103 node, enter 1.
- Enter one of the following commands:
- To get a list of all the statistics formatted as a java.util.Hashtable:
StatisticsService.fetchStatistics()
- To return statistics for a specific area of the product:
StatisticsService.fetchStatistic( java.lang.String key)Specify the name of one of the statistics listed in the Web page that you accessed earlier as the value for the key parameter. Use the Stop Watch Statistics to return a hash table of all of the statistics.
This command returns a value formatted as a java.lang.Integer or java.util.Hashtable object containing the following statistics data:
- average
- Average duration of a single invocation.
- invocations
- Number of times that the function was invoked.
- maximum
- Maximum duration of a single invocation.
- minimum
- Minimum duration of a single invocation.
- total
- Total duration of this operation.
Monitor statistics and metrics