Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a low end VPS server with 512megs of ram to host downloads of files (~10-25megs each).

what is a good configuration for the following parameters in apache. I expect no more than 10 human users at one time, but will likely have robots eating up resources. My purpose is mostly to limit bad robots (ignoring robots.txt) and bad users so they will not take down the server and cause my account to be suspended.

<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit      256
MaxClients       256
MaxRequestsPerChild  4000
share|improve this question
found the answer here… – Ray S. Jan 28 '14 at 11:24
You will have trouble fitting more than a few children into 512MB of RAM if you use prefork. Why are you using that instead of the threaded or event MPMs? Or nginx? – Ladadadada Jan 28 '14 at 14:36
@Ladadadada aha. thought of using apache with mod_cban are you saying that's too much? by threaded or event MPMs do you mean "worker"? – Ray S. Jan 28 '14 at 18:48
Worker is the correct name. It uses threads rather than separate processes to serve each request which is why I called it "threaded" but to save on confusion, stick with "worker". The Event MPM is in addition to prefork and worker. It exists in Apache 2.2 but contains a warning about it being new and unreliable. It is stable in Apache 2.4. MPM Documentation here. And a question about how to choose the right MPM for you. – Ladadadada Jan 28 '14 at 20:00
@Ladadadada thnx but will probably not have more than 10 concurrent connections. so prefork should be ok. i'll check the logs to see if i get any memory errors – Ray S. Jan 29 '14 at 22:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.