Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: 'A' web server takes another "time out"

by samtregar (Abbot)
on May 03, 2006 at 18:58 UTC ( #547243=note: print w/replies, xml ) Need Help??

in reply to 'A' web server takes another "time out"

I don't have any guesses as to what's causing so many httpds, but perhaps you can fix it by changing your Apache configuration? It seems like a well-considered MaxClients could prevent this kind of explosion.


  • Comment on Re: 'A' web server takes another "time out"

Replies are listed 'Best First'.
Re^2: 'A' web server takes another "time out" (MaxClients)
by tye (Sage) on May 03, 2006 at 19:50 UTC

    Thanks for the pointer.

    It looks like I'd need read access to /usr/pair/apache/... in order to check that but I don't have it. An older copy of httpd.conf that I requested (before the upgrade) had MaxClients set to 100. I'll have to ask for a new copy...

    - tye        

      If PerlMonks is running under mod_perl you should able to use the Apache API to examine the current setting. You might even be able to dynamically change it!


        If someone wants to take the time to be quite specific about how to check and/or set things like MaxClients and RLimitNPROC from mod_perl (or such), then I'll try them out. I did some looking but didn't come close to an answer in the short time I was able to devote to the search.

        Update: Corion reports looking into this and finding nothing useful for Apache1 (or at least that works on our web server).

        - tye        

Re^2: 'A' web server takes another "time out"
by mda2 (Hermit) on May 05, 2006 at 17:57 UTC
    On my experience, is very important correct values for:
    • MaxClient -> 100 Ok (it's can be more)
    • MinSpareServers -> min free instances, sugest same of StartServers
    • MaxSpareServers -> max free instances, sugest more than 60% of MaxClients
    • MaxKeepAliveRequests -> never all instances, sugest 50% of MaxClient
    • MaxRequestPerChild -> max request before kill process, set if required...

    Some time ago I had make a node Monitor instances of Apache Web server, with a script to see how are use of apache web connections online. To see historical usage, I'm sugest to use it or Apache-Tools (from Apache-Security).

    Evaluating your load averages, swap and CPU states, on my opinion optimize apache make good results... See your running time of httpd process:

    $ grep httpd 547234 | awk '{print $8}' | sort | uniq -c | head -n 5 125 0:00 110 0:01 41 0:02 14 0:03 9 0:04
    But the great info is "Parent Server Generation: XX" on server-status ... You realy need to enable this module ;)

    Current Time: Friday, 05-May-2006 10:56:47 PDT Restart Time: Tuesday, 02-May-2006 10:24:02 PDT Parent Server Generation: 3 Server uptime: 3 days 32 minutes 45 seconds Total accesses: 16557075 - Total Traffic: 349.2 GB CPU Usage: u170.547 s310.375 cu0 cs0 - .184% CPU load 63.4 requests/sec - 1.4 MB/second - 22.1 kB/request 175 requests currently being processed, 81 idle workers CKWWCKK_K_K_CKC_KK_K___KKK__K_KKKKKKKC_K_CC_KWK__WKKK_K_WKKK__WK GGG.GG.G.GGG...GGGGG..GGG.GGG.GG..GG.G..GG..G.....GWGGGGGGGGGGGG .G...W.GG.....G.GG.G..G.GG.........GGWG.G..G.G.....G...WG....G.G _K__KKCKCKWCK_WK__KKK_K_KW_KC__W___KKKK_KKKCK_KKWKKC_KCKKWKCKKWC

    Marco Antonio

      MaxClients of 100 seems pretty high to me. Commodity hardward isn't going to deal with 100 simultaneous mod_perl jobs very well! Even if you have the memory to handle that many jobs, you probably don't have the CPU.

      MaxClients can be high on a front-end server which serves static content and does a reverse proxy to the mod_perl backend. Those servers do much less work per-request and a given machine can run more of them simultaneously.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://547243]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2019-12-11 00:08 GMT
Find Nodes?
    Voting Booth?

    No recent polls found