I want to know the number of sessions connected to a web application deployed in Jboss, but I did not found the metric can give us this information
I got something similar, in that case we were running with Tomcat, I guess you can try to customize:
-TraceOneMethodOfClass: org.apache.catalina.session.StandardSession expire(Z) V SimpleDecrementor "Tomcat: Number of sessions"TraceOneMethodOfClass: org.apache.catalina.session.StandardSessionSimpleIncrementor "Tomcat: Number of sessions"
Thanks Gustavo, but if the user disconnect(logout) will have a wrong number of current sessions, do you have any other solution?
Gustavo's method can be used if you know the methods that logout a user and expire a session. The SimpleDecrementor can be used on these methods. It may be possible to also expose this metric via jmx and then enable jmx metrics in Introscope.
Many Thanks, using JMX I can get the number of active session.
Retrieving data ...