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. 

Comments

Popular posts from this blog

HAproxy logging

teamcity Automatic Agent Start under Linux

NFS mount add in fstab _netdev instead of default | firewall-cmd --list-all