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 that include the last time stamp.ResponseTimeDetails
:ResponseTime
Details that include the number of snapshots that are taken, minimum values, and maximum values.