What are the default values of /etc/apache2/mods-enabled/mpm_event.conf?

I added a php code to my sites that created errors like this:

AH00484: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting

and 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?

3

1 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)

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like