How to Count Active Sessions in Tomcat 7.
search cancel

How to Count Active Sessions in Tomcat 7.

book

Article ID: 11411

calendar_today

Updated On:

Products

CA Application Performance Management Agent (APM / Wily / Introscope) INTROSCOPE

Issue/Introduction



 How to count Active Sessions from Tomcat 7.

Environment

All supported releases with a Java Agent running Tomcat 7.

Resolution

Add the following instrumentation under the Tomcat pbd. 


-TraceOneMethodOfClass: org.apache.catalina.session.StandardSession expire
(Z) V SimpleDecrementor "Tomcat: Number of sessions"
TraceOneMethodOfClass: org.apache.catalina.session.StandardSession
SimpleIncrementor "Tomcat: Number of sessions"


Restart the application server.