I'm trying to optimize our web servers to handle as much connections as possible. I read a many posts and the Apache notes. I'm trying to understand which value should I choose for
At first, I've tried setting it to 4,000, but the server had difficulties handling many request, so I've started raising it. At the moment my setting are:
<IfModule prefork.c> StartServers 8 MinSpareServers 5 MaxSpareServers 20 ServerLimit 256 MaxClients 256 MaxRequestsPerChild 40000 </IfModule>
After setting the
MaxRequestsPerChild to 40,000 the server managed to handle more connections while not using more memory/cpu.
Can anyone tell me please whether this value is too high or it's ok to have such an high value?
[root@web06 ~]# uname -a Linux web 2.6.18-164.el5PAE #1 SMP Thu Sep 3 04:10:44 EDT 2009 i686 i686 i386 GNU/Linux [root@web06 ~]# free total used free shared buffers cached Mem: 3814660 3502968 311692 0 144368 2970468 -/+ buffers/cache: 388132 3426528 Swap: 5210104 0 5210104