apache2 进程卡在发送回复中 - W [英] apache2 processes stuck in sending reply - W

查看:22
本文介绍了apache2 进程卡在发送回复中 - 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆