I added a php code to my sites that created errors like this:
AH00484: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers settingand before I figured out what was actually going on, I went to change the values on /etc/apache2/mods-enabled/mpm_event.conf.
Now my values are:
<IfModule mpm_event_module> StartServers 2 MinSpareThreads 25 MaxSpareThreads 75 ThreadLimit 64 ThreadsPerChild 25 MaxRequestWorkers 400 MaxConnectionsPerChild 10000
</IfModule>Now I understand and solved the problem, and I would like to restore the default values, just to not make other messes, but I have absolutely no idea what they were.
Can someone tell me the default values, please?
31 Answer
According to this official doc, these are the default values:
<IfModule mpm_event_module> StartServers 3 MinSpareThreads 75 MaxSpareThreads 250 ThreadLimit 64 ThreadsPerChild 25 MaxRequestWorkers 400 MaxConnectionsPerChild 0
</IfModule>The default values for MaxRequestWorkers are calculated like this:
MaxRequestWorkers 400 (16 x 25 = 400)
ServerLimit 16 (default)
ThreadsPerChild 25 (default)