apache2进程停留在发送回复中-W [英] apache2 processes stuck in sending reply - W
问题描述
我正在具有7.5GB RAM的服务器上托管多个站点.使用apache2 mpm_prefork
.
I am hosting multiple sites on a server with 7.5gb RAM. Using apache2 mpm_prefork
.
以下命令给我的生产价值是200-300
Following command gives me a value of 200-300 in production
ps aux|grep -c 'apache2'
使用top
我看到只有几百兆的RAM可用.错误日志显示没有异常. apache2这么多进程正常吗?
Using top
i see only some hundred megabytes of RAM is free. Error log show nothing unusual. Is this much apache2 process normal?
MaxRequestWorkers
设置为512
更新:
现在我正在使用mod-status
检查apache活动.
我有这样的行
Update:
Now i am using mod-status
to check apache activity.
I have a row like this
Srv PID Acc M CPU SS Req Conn Child Slot Client VHost Request
0-0 29342 2/2/70 W 0.07 5702 0 3.0 0.00 1.67 XXX XXX /someurl
如果我在一段时间后再次检查PID
不变,并且我得到的SS
值比前一次更大.此请求的M
处于"W"发送答复状态.那么这意味着apache2进程已针对该请求锁定了吗?
If i check again after sometime PID
not changes and i get SS
with greater value that previous time. M
of this request is in 'W` sending reply state. So that means apache2 process locked in for that request?
推荐答案
在我的VPS和根服务器上,情况部分相似. AFAIK操作系统会尝试将大多数处理能力/RAM分配给正在运行的进程,并在需要时为其他进程释放资源.
On my VPS and root servers, the situation is partially similar. AFAIK the os tries to distribute most of the processing power/RAM to running processes and frees the resources for other processes as the need arises.
这篇关于apache2进程停留在发送回复中-W的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!