i would like to know if there is a way to determine the number of current connections there are (number of viewers of the site) at a given point in time?
There is no really easy way to know this. The closest you can get from a Java/Tomcat viewpoint is the number of active sessions.
So how to track the number of sessions ? The easiest way is to implement an HttpSessionBindingListener, which will be notified whenever a session is created, or destroyed. Thus, you could keep track of the number of active sessions.
Well, using Tomcat, I would use the method I described above. Failing that, then the answer to your same post in the Apache forum would be another way - thread65-978090 !!!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.