Number of Current Sessions in Mgmt portal for Tomcat


#1

How can I get the management portal to show the number of sessions on tomcat and if possible the number of sessions with a specific attribute “user”? The current number is always 0 but the max seems to be set. For our system, an httpsession with a “user” attribute means there is a logged in user. Would be good if I could see that

mgmt


#2

Haproxy will only show in flight HTTP transactions.

It is impossible for haproxy to know how many users are logged in and who those are. The only way to get that information is from your application backends.

edit: correction: current sessions actually counts in flight http transactions, not idle HTTP sessions.