MaxClients and MaxServers

What do you think the limits are for a Linode 768 running Apache when it comes to MaxClients and MaxServers?

I had mine set to 150 but I am now receiving at times upto 400-500 concurrent visits to a site hosted on my linode…..

This of course is not all the time this is just during peak traffic times and during times when my site gets lots of attention on StumbleUpon or Digg.

4 Replies

Have you considered lighttpd or nginx? They handle large numbers of concurrent users with much less config tweaking.

apache does just fine too with minimal configuration.

One thing to understand: Serving 50 requests in parallel FAST is better than trying to serve 500 requests in parallel slowly. In first case more requests will "wait in queue", but they'll wait a tiny fraction of second; in latter, they may be stuck for a second or more, causing the queue to build up and explode.

Seriously, get apache-worker with maybe 100 "minimum" threads and burstable to 250 or so, and set up number of your dynamic content handlers appropriately lower (50 or less). Most of your requests should be for static data like images, so the real "narrow throat" (and also, the main memory eater) are the php/python/whateveryouwilluse handlers.

If you don't use modphp, 150 is OK, but I wouldn't increase it any further. But if you don't use modphp, there really isn't any reason to use Apache in the first place. Both lighttpd and nginx can serve static files to 10K+ clients at a time without breaking a sweat, and any dynamic stuff (PHP, Rails, Django) would run as a separate process anyway.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct