apache maxClients

Discussion in 'Apache' started by bono056, Jul 29, 2011.

  1. #1
    hello
    i recently switched to VPS with plesk.
    my website is subdomain of another website, so my canonicalized address is something like this: mysite.xxxx.com
    i launched my website & after 5 minutes with about 70 concurrent users online, my site went down! i checked vps cpu usage, & it's max usage was around 5%. so i assume server didn't got the load.
    i talked to host support, they say there is this directive (maxClients) in apache config file with default value of 10(!!!!!!!!) (swtune.conf), by increasing this directive, your problem will be solved.
    first of all, if server went down because of this directive, i think i should find some warning or error message in apache log files, but there isn't any.
    today i test my website with this stress tools, once with vps ip address & once with mentioned subdomain (mysite.xxxx.com), the test with ip showing god result, but with that address it was awful & it shows crashing at 20 concurrent users.
    first of all, is this problem related to that directive? & if so, where should i set this directive for this subdomain? in "mysite" vps, or in main server (xxx.com).
    is it possible that there is something wrong with xxx.com configuration that didn't redirect traffic to my site?
     
    bono056, Jul 29, 2011 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    Hi there,

    If you are indeed maxing out your available clients, there will be an error in the Apache log file. I would suggest you go through that file and see if you can find any errors that may be causing your Apache server to refuse connections.

    Chris
     
    RHS-Chris, Jul 29, 2011 IP
  3. helpinghost

    helpinghost Active Member

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    53
    #3
    In Addition to what Chris said, in my experience if MaxClients is reached you will just the the browser hanging when trying to access the website.
    It will not Crash the server.
    When you say crashing, what exactly do you mean by that? Do you get a Kernel Panic?
     
    helpinghost, Aug 4, 2011 IP