how many users are connected to apache ?

Discussion in 'Apache' started by viki250, Jan 19, 2010.

  1. #1
    Hi all,

    I am interested to know how many concurrent users are connected to my Apache server (Apache/2.2.11 (Unix))

    Any command/script for this ?

    Bye,
    Viki.
     
    viki250, Jan 19, 2010 IP
  2. Monie

    Monie Peon

    Messages:
    98
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you have shell access, you could run httpd status
     
    Monie, Jan 19, 2010 IP
  3. hostechsupport

    hostechsupport Well-Known Member

    Messages:
    413
    Likes Received:
    23
    Best Answers:
    7
    Trophy Points:
    138
    #3
    On unix there are several command line tools you can use to see the number of connections to webserver.

    netstat -anp | grep 80(apache port number) --> will show you the connections from the different ip addresses to your webserver.

    ps -aufx | grep httpd --> detailed information can be seen in this.

    ps -U username -u username u --> you can see every process running as username
     
    hostechsupport, Jan 19, 2010 IP
  4. viki250

    viki250 Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi,
    My OS is Solaris 5.10 in which there is no command httpd status also netstat -anp | grep 80 returned empty.

    I find sonmething useful (and easy) for check concurrent apache request: Apache Module mod_status

    I like the idea of
    You can get the status page to update itself automatically if you have a browser that supports "refresh". Access the page to refresh it page every N seconds.

    Bye,
    Viki
     
    viki250, Jan 19, 2010 IP