Limit Apache to 1 request per process
Posted
by Gorilla3D
on Stack Overflow
See other posts from Stack Overflow
or by Gorilla3D
Published on 2010-04-13T01:52:58Z
Indexed on
2010/04/13
2:03 UTC
Read the original article
Hit count: 222
apache
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>
© Stack Overflow or respective owner