Websphere: Using PerformanceMonitor Servlet to Monitor Performance Metric
The PerfServlet provides the performance data output as an XML document, The servlet provides a way to use an HTTP request to query the performance metrics for an entire WebSphere Application Server administrative domain.
First we need to deploy this servlet on (clustered) nodes to be monitored before using it. The deployment is no way different than installing any EAR application file.
You can download and install PerfApp servlet from following links else visit IBM support portal
http://www.oracledbasupport.co.uk/wp-content/uploads/2010/09/perfServletApp.ear
http://www.oracledbasupport.co.uk/wp-content/uploads/2010/09/perfServletApp.war
http://%Server_name%:9080/wasPerfTool/servlet/perfservlet?module=beanModule+jvmRuntimeModule
Above URL will produce XML output file as :http://www.oracledbasupport.co.uk/wp-content/uploads/2010/07/-1.xml
Locate perfServletApp.ear which is generally at installedApps directory under Profiles, goto deployment manager and install this ear file.
Access the performance matrix using URLs below
Usage:
http://perfServlet_Host:port/wasPerfTool/servlet/perfservlet[?node=<node>&server=<server>&module=<module>]
The module name for which stats are displayed. Modules include the following:
- alarmManagerModule
- beanModule
- cacheModule
- connectionPoolModule
- jvmRuntimeModule
- j2cModule
- objectPoolModule
- orbPerfModule
- schedulerModule
- servletSessionsModule
- systemModule
- threadPoolModule
- transactionModule
- webAppModule
- webServicesModule
- wlmModule
- wsgwModule
Node
The servlet can limit the information it provides to a specific host by using the node parameter.
http://Server1:9080/wasPerfTool/servlet/perfservlet?node=Server1_Node01
Server
The servlet can limit the information it provides to a specific server by using the server parameter.
For example, in order to limit the data collection to the server on all nodes, invoke the following URL:
http://Server1:9080/wasPerfTool/servlet/perfservlet?server=server_member1To limit the data collection to the server invoke the following URL:
http://Server1:9080/wasPerfTool/servlet/perfservlet?node=Server1_Node01&server=server_member1
Module
The servlet can limit the information it provides to a specific PMI module by using the module parameter.
You can request multiple modules by using the following URL:
http://Server1:9080/wasPerfTool/servlet/perfservlet?module=beanModule+jvmRuntimeModuleFor example, to limit the data collection to the beanModule on all servers and nodes, invoke the following URL:
http://Server1:9080/wasPerfTool/servlet/perfservlet?module=beanModuleTo limit the data collection to the beanModule on the server ‘testserver’ on the node rjones, invoke the following URL:
http://Server1:9080/wasPerfTool/servlet/perfservlet?node=rjones&server=testserver&module=beanModuleTo find the list of the modules, invoke the PerfServlet help with the following URL:
http://Server1:9080/wasPerfTool/servlet/perfservlet?action=helphttp://Server1:9080/wasPerfTool/servlet/perfservlet?node=Server01_Node01&server=server_member1&module=jvmRuntimeModule
Leave a Reply
You must be logged in to post a comment.