Apache状态给出负数连接?

时间:2015-01-28 12:28:21

标签: linux apache

当我发出命令“apachectl status”时,我有时会得到一个很好的正常连接数/秒。 在其他时候,我得到一个负数..有时它显示一些随机的东西,如2e3 ^ E

到底是怎么回事?

我试图解决一些页面不加载的问题,我在chrome中等待套接字错误。然而CPU等都很好。

有什么想法吗?

由于 格雷厄姆

[root@console ~]# apachectl status | grep Status
   Status: "Total requests: 12288; Current requests/sec: 78.2; Current traffic: 314KB/sec"
[root@console ~]# apachectl status | grep Status
   Status: "Total requests: 12266; Current requests/sec: -2.44; Current traffic: 5.2KB/sec"
[root@console ~]# apachectl status | grep Status
   Status: "Total requests: 12266; Current requests/sec: -2.44; Current traffic: 5.2KB/sec"
[root@console ~]# apachectl status | grep Status
   Status: "Total requests: 12266; Current requests/sec: -2.44; Current traffic: 5.2KB/sec"
[root@console ~]# apachectl status | grep Status
   Status: "Total requests: 12266; Current requests/sec: -2.44; Current traffic: 5.2KB/sec"
[root@console ~]# apachectl status | grep Status
   Status: "Total requests: 12266; Current requests/sec: -2.44; Current traffic: 5.2KB/sec"
[root@console ~]# apachectl status | grep Status
   Status: "Total requests: 12266; Current requests/sec: -2.44; Current traffic: 5.2KB/sec"
[root@console ~]# apachectl status | grep Status
   Status: "Total requests: 12828; Current requests/sec: 56.2; Current traffic: 149KB/sec"
[root@console ~]# apachectl status | grep Status
   Status: "Total requests: 12828; Current requests/sec: 56.2; Current traffic: 149KB/sec"
[root@console ~]# apachectl status | grep Status
   Status: "Total requests: 12828; Current requests/sec: 56.2; Current traffic: 149KB/sec"
[root@console ~]# apachectl status | grep Status
   Status: "Total requests: 12825; Current requests/sec: -0.375; Current traffic:   0 B/sec"
[root@console ~]# apachectl status | grep Status
   Status: "Total requests: 12825; Current requests/sec: -0.375; Current traffic:   0 B/sec"

1 个答案:

答案 0 :(得分:0)

Sorta修复了它..

我感觉它在apache上击中了最大连接用户。

所以,我修改了prefork mpm以允许更多用户和安装mod-status来关注它。

从那时起,对于大量闲置工作人员和大量免费连接插槽,似乎都很满意。

幸运的是,服务器有足够的免费内存,无论如何都是在突袭的SSD上(应该发生颠簸)