clarocque

Member
Mar 1, 2004
14
0
151
Can enyone tell me a good ssh command or some easy way to see how many concurrent users are visitng sites on the server at any given time?

Chris
 

bhd

Well-Known Member
Sep 20, 2003
149
2
166
JNB ZA
cPanel Access Level
Root Administrator
A quick way to check is something like

netstat -an | grep :80 | sort

or

netstat -an | grep EST

The fisrt will show all HTTP connections sorted by IP regardless of state. The second, all established connections regardless of port number.
 

clarocque

Member
Mar 1, 2004
14
0
151
Thanks - count

Thanks for the info bhd

This will retunr a list correct/ Is there a way to get the server to count them?
 

stephan

Registered
Feb 6, 2002
3
0
301
Hi,

netstat -an | grep -c :80 might be good for counting them.

Also, if you use "iptraf", you can see current traffic by port number, network interface etc.

yum install iptraf if you have CentOS 4 (and maybe others too)