- 论坛徽章:
- 0
|
关于2.0.x/2.2.x apache Maxclient参数最大限制问题
经过我的测试 Maxclient参数设置超过256后,实际
ps aux|grep http|grep -v grep|wc -l 的值不会高于260
请问大家有没有什么好办法。(重新编译APACHE除外)
由默认配置改为 Maxclient 1500 提示超出。
[root@webserver1 bin]# /usr/local/apache2/bin/apachectl -k restart
WARNING: MaxClients of 1500 exceeds ServerLimit value of 256 servers,
lowering MaxClients to 256. To increase, please see the ServerLimit
directive.
提示说可以用ServerLimit 网上也有人这么说。
加了serverlimit后如下:
<IfModule prefork.c>
ServerLimit 2000
StartServers 10
MinSpareServers 10
MaxSpareServers 15
MaxClients 1000
MaxRequestsPerChild 10000
</IfModule>
重起apache不提示错误了,可测试结果还是不好用
ps aux|grep http|wc -l 依然不能超过260
请高手指教
[ 本帖最后由 hyran 于 2008-8-13 09:33 编辑 ] |
|