我有太多的请求等待从netstat可以看出如下
$netstat -anp | grep :80 | grep TIME_WAIT | wc -l 840 $netstat -anp |grep :80 | grep ESTABLISHED | wc -l 50
内存使用量:850MB / 1000MB
apache2.conf包含..
<IfModule mpm_prefork_module> StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 150 MaxRequestsPerChild 0 </IfModule> <IfModule mpm_worker_module> StartServers 2 MinSpareThreads 25 MaxSpareThreads 75 ThreadLimit 64 ThreadsPerChild 25 MaxClients 150 MaxRequestsPerChild 0 </IfModule> <IfModule mpm_event_module> StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadLimit 64 ThreadsPerChild 25 MaxRequestsPerChild 0 </IfModule>
是否有任何configuration更改,可以帮助我或它只是我的内存瓶颈?
急需帮助.. !!
你应该首先检查出mod_status模块。 它会告诉你更多关于你的Apache Web服务器正在做什么的信息。
http://httpd.apache.org/docs/2.2/mod/mod_status.html提供了一些文档,包括如何使用它的例子。