• 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

Issue Apache MaxRequestWorkers issue not resolving

Hassaan

Basic Pleskian
I am seeing the following errors in my apache logs


Apr 06 00:00:33 ns503772******100.net httpd[9585]: AH00515: WARNING: MaxRequestWorkers of 2000 would require 80 servers and
Apr 06 00:00:33 ns503772******100.net httpd[9585]: would exceed ServerLimit of 16, decreasing to 400.
Apr 06 00:00:33 ns503772******100.net httpd[9585]: To increase, please see the ServerLimit directive.

My current setting was following

<IfModule mpm_event_module>
LoadModule cgid_module modules/mod_cgid.so
MaxRequestWorkers 2000
</IfModule>



I'm am using Plesk Onyx

Processor: Intel Xeon E5-1620v2 - 4c/8t - 3.7 GHz/3.9 GH
Sever Ram: 64GB DDR3


My website generate when I tried to hit 1000 requests per second on it.


Then I have tried the following settings

<IfModule mpm_event_module>
StartServers 80
MinSpareThreads 50
MaxSpareThreads 300

ThreadLimit 25
ThreadsPerChild 25

ServerLimit 500
MaxRequestWorkers 2000
MaxConnectionsPerChild 0
</IfModule>


but issue remain un solved, infarct its generating more errors & log-writer started eating CPU

output of httpd -V | grep -i 'version\|mpm' is following

Server version: Apache/2.4.6 (CentOS)
Server MPM: event
 
Last edited:
Back
Top