+

Search Tips   |   Advanced Search

Web application monitoring

We can use a servlet MXBean for web application monitoring of the Liberty profile.

Performance data is available for each Servlet in the Web Application. Each servlet has its own MXBean.

The ObjectName for identifying each servlet MXBean is:

For example:

WebSphere:type=ServletStats,name=snoop.Alpine Snoop Servlet
WebSphere:type=ServletStats,name=MyApp.MyServlet

This MXBean is responsible for reporting ServletStats for each servlet. Following key data is available for ServletStats MXBean:

Counter definitions (Attributes to MXBean)

  • AppName: Name of the application.

  • ServletName: Name of the servlet.

  • RequestCount: Number of hits to this servlet.

  • ResponseTime: Average response time (nano-seconds).

  • Description: Description of counter.

  • RequestCountDetails: RequestCount details including last time stamp.

  • ResponseTimeDetails: ResponseTime details including number of snapshot taken, min, max values and so on.

.

Management Interface

The management interface of web application monitoring is com.ibm.websphere.webcontainer.ServletStatsMXBean. We can use the management interface to obtain a proxy object. See Examples of accessing MBean attributes and operations.

For more information about the management interface, see the Java API document for the Liberty profile. The Java API documentation for each Liberty profile API is detailed in the Programming Interfaces (APIs) section of the information center, and is also available as a separate .zip file in one of the javadoc subdirectories of the ${wlp.install.dir}/dev directory.


Parent topic: Monitoring the Liberty profile