JBoss EAP / WildFly gathers a lot of statistics of the deployed applications including the number of active (web) sessions. Unfortuntely this figure is not accessible by the adminstration console (yet?), but you can look it up with JBoss CLI. As an example, if you have
- a managed domain with a host named master and a server named m0
- an enterprise application named showServer-ear.ear which contains a web application (name does not matter)
you can get the active session count of the web application by issuing the following JBoss CLI command:
/host=master/server=m0/deployment=showServer-ear.ear/subdeployment=*/subsystem=web:read-attribute(name=active-sessions)
—
See you at one of our next Java EE Workshops:
Java EE 6/7 Hands-On Workshop, 14-03-2014 in Berlin,
Power Workshop Java EE 6/7, 27-01-2014 – 31-01-2014 in Berlin or 03-03-2014 – 07-03-2014 in Bielefeld