Answer the question
In order to leave comments, you need to log in
Why has the number of RequestWorkers mpm_prefork increased dramatically?
Hello!
There is a project, usually there are about 700-1000 people online on it.
Apache with mpm_prefork
<IfModule mpm_prefork_module>
StartServers 1
MinSpareServers 1
MaxSpareServers 10
MaxRequestWorkers 250
MaxConnectionsPerChild 0
</IfModule>
[mpm_prefork:error] [pid 2546] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
<IfModule mpm_prefork_module>
StartServers 1
MinSpareServers 1
MaxSpareServers 10
ServerLimit 5000
MaxRequestWorkers 5000
MaxConnectionsPerChild 0
</IfModule>
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
25/tcp open smtp
53/tcp open domain
80/tcp filtered http
Answer the question
In order to leave comments, you need to log in
StartServers 1
MinSpareServers 1
MaxSpareServers 10
MaxRequestWorkers 250
MaxConnectionsPerChild 0 is
not enough, however, first of all,
if you have memory, do at least
StartServers 10
MinSpareServers 10
MaxSpareServers 10
MaxRequestWorkers 250
MaxConnectionsPerChild 0
As a rule, memory is enough for this with a large margin.
That's just 1 it's theoretically even with nginx it's very easy to debug you.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question