WAS v8.5 > Monitoring > Monitoring overall system health > Develop custom PMI monitoring applications > Retrieving performance data with PerfServlet

PerfServlet input

The PerfServlet input and output is used for simple end-to-end retrieval of performance data that any tool, provided by either IBM or a third-party vendor, can handle

The PerfServlet is deployed in one of the application server instance within the domain. By default, the PerfServlet collects all of the performance data across a WebSphere Application Server cell. However, it is possible to limit the data returned by the servlet to either a specific node, server, or PMI module:

Node

.The servlet can limit the information it provides to a specific host using the node parameter. For example, to limit the data collection to the node ‘rjones’, invoke the following URL:

    http://hostname/wasPerfTool/servlet/perfservlet?node=rjones

Server

The servlet can limit the information it provides to a specific server using the server parameter. For example, in order to limit the data collection to the ‘testserver’ server on all nodes, invoke the following URL:

    http://hostname/wasPerfTool/servlet/perfservlet?server=testserver
To limit the data collection to the ‘testserver’ server located on the host ‘rjones’, invoke the following URL:

    http://hostname/wasPerfTool/servlet/perfservlet?node=rjones&server=testserver

Module

The servlet can limit the information it provides to a specific PMI module using the module parameter. We can request multiple modules using the following URL:

    http://hostname/wasPerfTool/servlet/perfservlet?module=beanModule+jvmRuntimeModule
For example, to limit the data collection to the beanModule on all servers and nodes, invoke the following URL:

    http://hostname/wasPerfTool/servlet/perfservlet?module=beanModule
To limit the data collection to the beanModule on the server ‘testserver’ on the node rjones, invoke the following URL:

    http://hostname/wasPerfTool/servlet/perfservlet?node=rjones&server=testserver&module=beanModule
To find the list of the modules, invoke the PerfServlet help with the following URL:

    http://hostname/wasPerfTool/servlet/perfservlet?action=help

When the performance servlet is first initialized, it retrieves the list of nodes and servers within the domain in which it is deployed. Because the collection of this data is expensive, the performance servlet holds this information as a cached list. If a new node is added to the domain or a new server is started, the performance servlet does not automatically retrieve the information about the newly created element. To force the servlet to refresh its configuration, add the refreshConfig parameter to the invocation as follows:

You may want to configure other parameters of the performance servlets according to your specific needs. We can define the host, port number, connector type, and a user name and password.


Related concepts:

PerfServlet output


Related


Retrieving performance data with PerfServlet


+

Search Tips   |   Advanced Search