• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question Apache Tuning settings - ServerLimit

Sofie76

New Pleskian
Hello,

I use apache with nginx and php-fpm. My apache has gone away a few times and I found in the apache log this error:

server reached MaxRequestWorkers setting

I checked everything from here:

Apache web server goes down: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting

and come to the conclusion:

I have to increase the MaxRequestWorkers in:

mpm_prefork.conf

This was the file by default:

<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxRequestWorkers 150
MaxConnectionsPerChild 0
</IfModule>


No I changed it to:


<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxRequestWorkers 250
MaxConnectionsPerChild 0
</IfModule>




I read alot about apache tuning and I have two questions:

1, On every plesk tuning page on the web is something about "ServerLimit". Do I have to set "ServerLimit" in my mpm_prefor.conf??? or is there a default value in any other file?

2, MaxConnectionsPerChild = 0 - should I increase this value? I have 16GB RAM and 6 Cores. On the Server are 2 Forums with arround 200.000 PI´s daily.

Thank you very much
 
Back
Top