Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do i determining the number of current connections in the server?

Status
Not open for further replies.

spyghost

Technical User
Jan 17, 2003
52
HK
hi,

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.

Click here to learn Ways to help with Tsunami Relief
--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top