I’m trying to set properly an apache installation on an aws instance EC2 m3 Large (with 7.5 Gio or RAM).
Once or twice a week, apache crash with the message: [Thu Aug 14 12:38:33.552250 2014] [mpm_prefork:error] [pid 6279] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
My question is, how should I set my httpd.conf ?
For now, I always have at least 4.5 Gio RAM free.
I would like to use my hardware the best I can and to prevent apache to chrash suddenly.
Here are my apache settings:
<IfModule mpm_prefork_module> StartServers 20 MinSpareServers 15 MaxSpareServers 30 MaxRequestWorkers 80 MaxConnectionsPerChild 1000 </IfModule> KeepAlive On KeepAliveTimeout 2 MaxKeepAliveRequests 100
My request are average 25Mb and I allow php to do post for 125 Mb
Is there someone who can advise me?
Unless you’re running out of memory (it sounds like you are not) then you should do exactly what it says: raise the
If you were running out of memory, you would need to begin scaling up or out, by increasing the instance size, or adding more instances.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.