This topic applies to WebSphere Application Server Liberty V8.5.5.9 and earlier. For the latest Liberty topics, see the WebSphere Application Server Liberty documentation.
Web application monitoring
You can use a servlet MXBean for web application monitoring of Liberty.
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:
WebSphere:type=ServletStats,name=<AppName>.<ServletName>
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:
- Request Count
- Response Time
- Servlet Name
- Application Name
- 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, and max values.
- Management Interface
- The management interface of web application monitoring is com.ibm.websphere.webcontainer.ServletStatsMXBean. You 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 Liberty. The Java API documentation for each Liberty API is detailed in the Programming Interfaces (APIs) section of the documentation, and is also available as a separate .zip file in one of the javadoc subdirectories of the ${wlp.install.dir}/dev directory.