Could anybody advise please, what do I need to set in this ServerLimit for it not to go over the limit? I would like to keep KeepAlive on as well. (Although I tried it with KeepAlive off but it did not help it either). I have now experimented with all the settings but could not figure it out.
1. I tried setting ServerLimit to 256 but after about 4 days it reached the limit of 256 and told me there were no slots available, the web-sites went down but Apache was running OK.
2. I tried setting ServerLimit to 512 but after about 10 days it reached the limit of 512 and told me there were no slots available, the web-sites went down but Apache was running OK.
3. I tried setting ServerLimit to 1024 but after about 20 days it reached the limit of 1024 and told me there were no slots available, the web-sites went down but Apache was running OK.
4. I have set it now to 2048 but I assume after a month or so it will reach the limit of 2048 again (as it always does) and tell me the same stuff.
5. I also tried various MaxRequestPerChild settings from 1 till 10000 but alas, it did not work.
What am I missing here? I have 4GB RAM in total for this one.
Code:
<IfModule mpm_prefork_module>
ServerLimit 256
MaxClients 256
StartServers 10
MinSpareServers 5
MaxSpareServers 10
MaxRequestsPerChild 100
</IfModule>