Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
</IfModule>
share|improve this question
    
found the answer here serverfault.com/questions/21106/… –  Ray S. Jan 28 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 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 at 18:48
1  
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 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 at 22:24

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.