Limit Apache to 1 request per process
- by Gorilla3D
I have a few long running processes on apache and when the server gets a bit of a load they all seem to couple into 3-4 processes. I've tried setting the MaxRequestsPerChild to 1 and that works, but spawning new processes all the time is expensive.
Here is my current configuration:
<IfModule prefork.c>
StartServers 25
MinSpareServers 50
MaxSpareServers 50
ServerLimit 512
MaxClients 50
MaxRequestsPerChild 10
</IfModule>
<IfModule worker.c>
StartServers 25
MaxClients 50
MinSpareThreads 50
MaxSpareThreads 125
ThreadsPerChild 50
MaxRequestsPerChild 10
</IfModule>