1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Get the number of current connexions in Apache server?

Discussion in 'Apache' started by medapache, Apr 7, 2014.

  1. #1
    Hi all,

    I am interested to know number of current connexions in my Apache server
    Server version: Apache/2.2.15 (UNIX)
    OS : Solaris 5.10

    Any command/script for this ?

    Than'k,
    Med.
     
    medapache, Apr 7, 2014 IP
  2. Zeokat

    Zeokat Member

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    46
    #2
    Perhaps you can use Apache mod_status: http://httpd.apache.org/docs/2.2/mod/mod_status.html

    Hope it helps.
     
    Zeokat, Apr 7, 2014 IP
  3. medapache

    medapache Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    hi ,

    Thank you for your answer, I'm on console mode ,I can't use mod_status ...... I'm connected to the apache server remotely through PUTTY.
     
    medapache, Apr 7, 2014 IP
  4. Zeokat

    Zeokat Member

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    46
    #4
    I dont know any command that return you current conections. But you can use mod_status with PuTTY ;)
     
    Zeokat, Apr 7, 2014 IP
  5. medapache

    medapache Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #5
    In fact what i'm looking for is a command or script that can return this result ,because enabling apache's mod_status will need to restart the apache server and since the server is in production I can't do it :s

    thank you
     
    medapache, Apr 7, 2014 IP
  6. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #6
    A restart of a production Apache server takes (or at least should take) a few seconds (less than half a minute). If you can't afford to do that to achieve what you want, I would consider rethinking why you need what you need.
     
    PoPSiCLe, Apr 13, 2014 IP