Reputation: 24705
I would like to change the default max connection numbers in Apache as the number of processes is now
# ps -ef | grep apache2 | wc -l
152
I have read that I have to change ServerLimit
, but I don't see that in apache config files.
# grep -r ServerLimit .
#
Where should I apply that?
UPDATE:
Regarding the MPM module, I see this in mods-available/mpm_prefork.conf
:
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxRequestWorkers 150
MaxConnectionsPerChild 0
</IfModule>
Should I increase MaxRequestWorkers
only? Or I have to define ServerLimit
?
Upvotes: 1
Views: 6559
Reputation: 1741
MPM configuration setting located in conf.modules.d/00-mpm.conf file. You can configure ServerLimit after LoadModule entry. You can refer httpd process always 256
Upvotes: 1