Active session count per server | Using JMX jconsole | HttpSessionListener
Option 1: Using JMX
- Start Tomcat with its JMX agent enabled
- Use jconsole to connect to Tomcat over JMX. The "Catalina/Manager" JMX object will give you active sessions for each webapp.
- If you want it programmatically, write a JMX client
Option 2: Write a custom HttpSessionListener and implement your own session count logging.
- Start Tomcat with its JMX agent enabled
- Use jconsole to connect to Tomcat over JMX. The "Catalina/Manager" JMX object will give you active sessions for each webapp.
- If you want it programmatically, write a JMX client
Option 2: Write a custom HttpSessionListener and implement your own session count logging.
Comments
Post a Comment