Skip to content


apache优化

原始设置

#Timeout 300
#KeepAlive On
#MaxKeepAliveRequests 100
#KeepAliveTimeout 5
#ServerSignature Off

#
# StartServers 5
# MinSpareServers 5
# MaxSpareServers 10
# MaxClients 256
# MaxRequestsPerChild 0
#

高峰时访问很慢

ps -aux | grep httpd|wc -l

进程到250就上不去了。

暂时改一下keepAlive看看情况,
修改设置

#Timeout 150
#KeepAlive Off
#MaxKeepAliveRequests 60
#KeepAliveTimeout 5
#ServerSignature Off

访问速度一下上去了,进程也就130左右

再次修改配置

#Timeout 180
#KeepAlive On
#MaxKeepAliveRequests 64
#KeepAliveTimeout 5
#ServerSignature Off

#
# ServerLimit 1000
# StartServers 10
# MinSpareServers 10
# MaxSpareServers 20
# MaxClients 512
# MaxRequestsPerChild 100000
#

进程稳定在330,就是载入图片有点慢

Posted in linux 维护优化, 技术.


No Responses (yet)

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.