Sessions monitoring
You can use the SessionStats MXBean to monitor the performance data of sessions in Liberty.
The performance data of sessions for each application is available as an MXBean, which can be accessed through JMX.
The sessions that are associated with a single web application have their own SessionStats MXBean (that is, one SessionStats MXBean for each web application).
The
ObjectName
for identifying each Session MXBean
is:WebSphere:type=SessionStats,name=*
For
example:WebSphere:type=SessionStats,name=default_host/trade_lite
WebSphere:type=SessionStats,name=default_host/moneybank
The MXBean is responsible for reporting SessionStats for a single web application. The following
key data is available for the SessionStats MXBean after monitoring is enabled:
- CreateCount
- The total number of sessions created.
- LiveCount
- The total number of sessions that are currently cached in memory.
- ActiveCount
- The total number of concurrently active sessions. A session is active if Liberty is processing a request that uses that session.
- InvalidatedCount
- The total number of sessions that are invalidated.
- InvalidatedCountbyTimeout
- The total number of sessions invalidated by a timeout.