Board logo

标题: [求助] 老大,请教下 MaxRequestsPerChild 的问题 [打印本页]

作者: colin    时间: 2016-1-20 02:21     标题: 老大,请教下 MaxRequestsPerChild 的问题

httpd-wdl.conf里怎么又三个MaxRequestsPerChild 有什么不同哦?
我的1核1G的云服务器,偶尔HTTPD进程飙升到几百。是不是得从这个限制,设置多少合适?
<IfModule mpm_worker_module>
    ServerLimit
32
    ThreadLimit
256
    StartServers        12
    MaxClients          2048
    MinSpareThreads      50
    MaxSpareThreads      256
    ThreadsPerChild      256
    MaxRequestsPerChild   0
</IfModule>
<IfModule mpm_prefork_module>
    ServerLimit         1024
    StartServers          5
    MinSpareServers       3
    MaxSpareServers      30
    MaxClients          1024
    MaxRequestsPerChild   0
</IfModule>
<IfModule mpm_itk_module>
    ServerLimit         1024
    StartServers          5
    MinSpareServers       3
    MaxSpareServers      30
    MaxClients          1024
    MaxRequestsPerChild   0
</IfModule>

另外请教/etc/sysctl.conf 添加 net.ipv4.netfilter.ip_conntrack_tcp_timeout_established 值为多少合适?




欢迎光临 WDlinux官方论坛 (http://wdlinux.cn/bbs/) Powered by Discuz! 7.2