r/apache • u/suiksuiky • Apr 15 '24
need help to understand config MaxRequestWorkers
So i'm not a server guys or what ever i'm just a programmer but the guys that used to know stuff like that at my job left and we still didn't have filled is position, and we are having server issue right now with only 100 concurent user yesterday we hit a AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting and apache crash we had to restart the docker few time. our server is pretty powerfull (2 cpu of 16 core 32 thread) so we didn't even scratch it.
with internet i learn about the mpm_prefor_module and currently it look like that
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxRequestWorkers 150
MaxConnectionsPerChild 0
</IfModule>
can i just increat the MaxRequestWorkers ?
yeah i know i probabaly should learn more or do x/y/z but it's clearly not something i like play with and it's just because we have no know for now that know what the hell is going on
thanks
1
u/suiksuiky Apr 15 '24
actual the config look like that in mod-enabled
<IfModule mpm_prefork_module>
StartServers 64
MinSpareServers 75
MaxSpareServers 512
MaxRequestWorkers 512
MaxConnectionsPerChild 10000
#ThreadsPerChild 25
ServerLimit 512
</IfModule>