IBM Support

How to Monitor Web Container Sessions for WebSphere Traditional and Liberty Profile

Question & Answer


Question

How do I Monitor Web Container Session Count  and related information for WebSphere Traditional and Liberty Profile Application Servers ?

Cause

Clients and Customers needing to monitor Web Container Sessions on their Application Servers, so that they may refine their current Session Management settings to optimize HTTP session support.

Answer

WebSphere Traditional Base or ND Application Server:

Enable PMI request metrics and setup utilize the Servlet session counters in WebSphere Traditional along with TPV.

How do I monitor?

https://www.ibm.com/support/knowledgecenter/en/SSEQTP_9.0.5/com.ibm.websphere.base.doc/ae/welc_howdoi_tprf2.html

Register and report usage metrics to the IBM Cloud Private metering service

Enable PMI using the administrative console

Monitor performance with Tivoli Performance Viewer

Use request metrics to measure application flow

Servlet session counters

https://www.ibm.com/support/knowledgecenter/en/SSEQTP_9.0.5/com.ibm.websphere.base.doc/ae/rprf_datacounter6.html

https://www.ibm.com/support/knowledgecenter/en/SSAW57_9.0.5/com.ibm.websphere.nd.multiplatform.doc/ae/rprf_datacounter6.html

com.ibm.websphere.pmi.stat

Interface WSSessionManagementStats

https://www.ibm.com/support/knowledgecenter/en/SSEQTP_9.0.5/com.ibm.websphere.javadoc.doc/web/apidocs/com/ibm/websphere/pmi/stat/WSSessionManagementStats.html

 

CreateCount

InvalidateCount

LifeTime

ActiveCount

LiveCount

NoRoomForNewSessionCount

CacheDiscardCount

ExternalReadTime

ExternalReadSize

ExternalWriteTime

ExternalWriteSize

AffinityBreakCount

TimeSinceLastActivated

TimeoutInvalidationCount

ActivateNonExistSessionCount

SessionObjectSize

WebSphere Liberty Base or ND Application Server:

Use the already exposed SessionStats Mxbean in WebSphere Liberty Profile.

Sessions monitoring

https://www.ibm.com/support/knowledgecenter/en/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/rwlp_mon_sessionstats.html

https://www.ibm.com/support/knowledgecenter/en/SSAW57_liberty/com.ibm.websphere.wlp.nd.multiplatform.doc/ae/rwlp_mon_sessionstats.html

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.

Caveate:  WSAdmin is not generally used for Monitoring Performance Statistics, but moreover it is used for Administration Configuration Setup.

Configuring applications for session management using scripting

https://www.ibm.com/support/knowledgecenter/en/SSEQTP_9.0.5/com.ibm.websphere.base.doc/ae/txml_webmodules.html

[{"Business Unit":{"code":"BU025","label":"IBM Cloud and Cognitive Software"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Component":"PMI;MXBEAN","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF043","label":"Red Hat"},{"code":"PF040","label":"RedHat OpenShift"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"8.5.5.x, 9.x","Edition":""}]

Product Alias/Synonym

WAS;WEB

Document Information

Modified date:
19 November 2019

UID

ibm11076103