可能重复:
增加Apache请求的数量?
我想增加最大请求的数量,目前它被限制为150,当它达到时,它会减慢我的服务器速度。
我在cPanel / WHM的方式。
您正在search的configuration设置是:
<IfModule mpm_prefork_module> StartServers 10 MinSpareServers 10 MaxSpareServers 30 MaxClients 256 MaxRequestsPerChild 0 </IfModule> <IfModule mpm_worker_module> StartServers 5 MaxClients 200 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 </IfModule>
看看你使用的是什么模块。 通常使用prefork。
我不知道cPanel,但大多数这些configuration工具使用模板。 所以你可以在cPanel的模板目录下grep
grep -ri "MaxClients" /patch/to/cpanel
或者,也许你可以在Web界面的某处插入custum设置到你的apache。 你也可以尝试手动设置你的Apache,并尝试如果你的问题消失了。 然后,如果它的工作,尝试调整cPanel的东西。
这似乎是https://serverfault.com/questions/78554/increasing-the-number-of-apache-requests的重复。 请在那边看我的回答。 基本上,你不能简单地应用更改evildead(或另一个问题上的LapTop006)build议,他们必须放置在/usr/local/apache/conf/includes/pre_virtualhost_2.conf