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 Westi 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?
 
hi,
you can use the extended_status directive:

OR you can use a simple script, to check the connections number on http port.

to get (established) connections number on port 80 (default http) :

Code:
$ netstat -an   | grep '^tcp' | grep ESTABLISHED | grep '1\.2\.3\.4\.80' | wc -l



to get connections
Code:
$ netstat -an   | grep '^tcp' | grep ESTABLISHED | grep '1\.2\.3\.4\.80'

instead of 1\.2\.3\.4 , you should use your IP

PM

___
____
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top