1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

server reached MaxClients setting

Discussion in 'Plesk for Linux - 8.x and Older' started by finalwebsites, Mar 20, 2007.

  1. finalwebsites

    finalwebsites Guest

    0
     
    Hello,

    after a few month I get back this problems, Apache stops working need to be restarted etc.

    I have a 3 ghz/ 2GB amd athlon server and have this cofiguration:

    Code:
    # prefork MPM
    # StartServers ......... number of server processes to start
    # MinSpareServers ...... minimum number of server processes which are kept spare
    # MaxSpareServers ...... maximum number of server processes which are kept spare
    # MaxClients ........... maximum number of server processes allowed to start
    # MaxRequestsPerChild .. maximum number of requests a server process serves
    <IfModule prefork.c>
    StartServers         5
    MinSpareServers      5
    MaxSpareServers     10
    MaxClients         256
    MaxRequestsPerChild  0
    </IfModule>
    
    # pthread MPM
    # StartServers ......... initial  number of server processes to start
    # MaxClients ........... maximum  number of server processes allowed to start
    # MinSpareThreads ...... minimum  number of worker threads which are kept spare
    # MaxSpareThreads ...... maximum  number of worker threads which are kept spare
    # ThreadsPerChild ...... constant number of worker threads in each server process
    # MaxRequestsPerChild .. maximum  number of requests a server process serves
    <IfModule worker.c>
    StartServers         2
    MaxClients         200 
    MinSpareThreads     25
    MaxSpareThreads     75
    ThreadsPerChild     25
    MaxRequestsPerChild  0
    </IfModule>
    
    # perchild MPM
    # NumServers ........... constant number of server processes
    # StartThreads ......... initial  number of worker threads in each server process
    # MinSpareThreads ...... minimum  number of worker threads which are kept spare
    # MaxSpareThreads ...... maximum  number of worker threads which are kept spare
    # MaxThreadsPerChild ... maximum  number of worker threads in each server process
    # MaxRequestsPerChild .. maximum  number of connections per server process (then it dies)
    <IfModule perchild.c>
    NumServers           5
    StartThreads         5
    MinSpareThreads      5
    MaxSpareThreads     10
    MaxThreadsPerChild  20
    MaxRequestsPerChild  0
    AcceptMutex fcntl
    </IfModule>
    
    
    which is the best configuration and where can I see which of those 3 is used?
    Thanks...
     
  2. dhananth

    dhananth Guest

    0
     
    Partition details needed

    Hi,
    Our company plan to setup a own hosting server. We purchased the server with configuration of Xeon Dual core processor,with 300 GB Harddisk.

    Kindly suggest the best partition details suitable for Plesk 8 control panel in our server installed Federo 5.

    thanks.
     
  3. finalwebsites

    finalwebsites Guest

    0
     
    Re: Partition details needed

    what is this an ad?
     
  4. atomicturtle

    atomicturtle Golden Pleskian

    29
     
    Joined:
    Nov 20, 2002
    Messages:
    2,110
    Likes Received:
    7
    Location:
    Washington, DC
    Yeah that was kind of bizzare huh?

    So if I follow the problem you're having is that apache will be running, but wont be responding to any new requests right?
     
  5. finalwebsites

    finalwebsites Guest

    0
     
    can't say that exactly because watchdog is restarting the whole thing, do you need some log information?
     
  6. atomicturtle

    atomicturtle Golden Pleskian

    29
     
    Joined:
    Nov 20, 2002
    Messages:
    2,110
    Likes Received:
    7
    Location:
    Washington, DC
    Ah, so apache is actually dying periodically? I can think of a zillion things that could do that (you're being attacked/DDoS'd, bad mod_rewrite rules, etc). What distro are you on?
     
  7. finalwebsites

    finalwebsites Guest

    0
     
    I'm running a debian distro... check this thread I think thats similar to my problem:
    http://forum.swsoft.com/showthread.php?s=&threadid=41493
     
  8. atomicturtle

    atomicturtle Golden Pleskian

    29
     
    Joined:
    Nov 20, 2002
    Messages:
    2,110
    Likes Received:
    7
    Location:
    Washington, DC
    Ah, Im not familiar with the eccentricities on that implementation, Id check with the debian support groups first. Configuration debugging-wise a good place to start would be to disable everything plesk-related that you can (sitebuilder, tomcat, etc) and see if it goes away. If it does, then you can nail it down to one of the PSA components.
     
  9. finalwebsites

    finalwebsites Guest

    0
     
    For now I raised the timeout limit to 30 seconds and I got no more watchdog messages ;)

    look, it's important for me that my server works for the next 6 weeks. After that time I get a new one with also a better partner.

    Thanks!
     
  10. finalwebsites

    finalwebsites Guest

    0
     
    look like still the same problem:

    this is the error log during the last restart:

    so again what should I change in the configuration above? and is the apache restarted by apache or watchdog?

    thats the watchdog message:
    and the server was really down for a while because I got also a message from an external monitor service.
     
Loading...