【发布时间】:2020-07-08 15:20:11
【问题描述】:
我想更改 Apache 中的默认最大连接数,因为现在是进程数
# ps -ef | grep apache2 | wc -l
152
我读到我必须更改 ServerLimit,但我在 apache 配置文件中没有看到。
# grep -r ServerLimit .
#
我应该在哪里应用它?
更新:
关于 MPM 模块,我在mods-available/mpm_prefork.conf 看到了这个:
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxRequestWorkers 150
MaxConnectionsPerChild 0
</IfModule>
我应该只增加MaxRequestWorkers 吗?还是我必须定义ServerLimit?
【问题讨论】:
-
确认您的 apache httpd 版本?
-
是
Apache/2.4.29 (Ubuntu)。
标签: apache