• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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