Page 1 of 1

How to quickly find out which configuration file determines MaxRequestWorkers value?

Posted: Thu Apr 27, 2017 9:26 am
by baijianpeng
When I check my Apache log I saw following records:

Code: Select all

root@mail:/var/log/apache2# tail error.log
[Wed Apr 26 16:18:42.858872 2017] [mpm_prefork:warn] [pid 4095] AH00181: MaxRequestWorkers of 300 exceeds ServerLimit value of 256, decreasing to match
But in the file /etc/apache2/apache2.conf, I saw different values configured:
<IfModule mpm_prefork_module>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 400
MaxClients 200
MaxRequestsPerChild 4000
</IfModule>
There is no number "300" or "256". So I have no idea which configuration file determines MaxRequestWorkers value?

I noticed that this apache2.conf file will use many other .conf files by "Include" method. So how can I quickly find out which file has overridden the main apache2.conf settings?

Thank you.