Apache httpd 代理:反向错误

Apache httpd 代理:反向错误

我有一个 Apache 服务器,用于处理移动游戏的正常 http 请求。平均每秒处理 2-4 个请求,一切运行顺利。但是,每隔几个小时就会发生一个意外错误,导致 Apache 繁忙并暂停 Apache 一段时间,例如 1-2 分钟。因此,在此期间收到的请求会累积起来并同时处理,直到 Apache 恢复可用。这使得每个单个请求的执行时间达到 60 - 270 秒,这是不可接受的。以下是导致问题的 Apache 错误日志:

[Mon Jan 20 08:05:15 2014] [debug] proxy_util.c(1820): proxy: grabbed scoreboard slot 0 in child 11444 for worker proxy:reverse
[Mon Jan 20 08:05:15 2014] [debug] proxy_util.c(1839): proxy: worker proxy:reverse already initialized
[Mon Jan 20 08:05:15 2014] [debug] proxy_util.c(1936): proxy: initialized single connection worker 0 in child 11444 for (*)
[Mon Jan 20 08:05:17 2014] [debug] proxy_util.c(1820): proxy: grabbed scoreboard slot 0 in child 11445 for worker proxy:reverse
[Mon Jan 20 08:05:17 2014] [debug] proxy_util.c(1839): proxy: worker proxy:reverse already initialized
[Mon Jan 20 08:05:17 2014] [debug] proxy_util.c(1936): proxy: initialized single connection worker 0 in child 11445 for (*)
[Mon Jan 20 08:05:18 2014] [debug] proxy_util.c(1820): proxy: grabbed scoreboard slot 0 in child 11446 for worker proxy:reverse
[Mon Jan 20 08:05:18 2014] [debug] proxy_util.c(1839): proxy: worker proxy:reverse already initialized
[Mon Jan 20 08:05:18 2014] [debug] proxy_util.c(1936): proxy: initialized single connection worker 0 in child 11446 for (*)
[Mon Jan 20 08:05:18 2014] [debug] proxy_util.c(1820): proxy: grabbed scoreboard slot 0 in child 11447 for worker proxy:reverse
[Mon Jan 20 08:05:18 2014] [debug] proxy_util.c(1839): proxy: worker proxy:reverse already initialized
[Mon Jan 20 08:05:18 2014] [debug] proxy_util.c(1936): proxy: initialized single connection worker 0 in child 11447 for (*)
[Mon Jan 20 08:05:19 2014] [debug] proxy_util.c(1820): proxy: grabbed scoreboard slot 0 in child 11448 for worker proxy:reverse
[Mon Jan 20 08:05:19 2014] [debug] proxy_util.c(1839): proxy: worker proxy:reverse already initialized
[Mon Jan 20 08:05:19 2014] [debug] proxy_util.c(1936): proxy: initialized single connection worker 0 in child 11448 for (*)
[Mon Jan 20 08:05:19 2014] [debug] proxy_util.c(1820): proxy: grabbed scoreboard slot 0 in child 11449 for worker proxy:reverse
[Mon Jan 20 08:05:19 2014] [debug] proxy_util.c(1839): proxy: worker proxy:reverse already initialized
[Mon Jan 20 08:05:19 2014] [debug] proxy_util.c(1936): proxy: initialized single connection worker 0 in child 11449 for (*)
[Mon Jan 20 08:05:19 2014] [debug] proxy_util.c(1820): proxy: grabbed scoreboard slot 0 in child 11450 for worker proxy:reverse
[Mon Jan 20 08:05:19 2014] [debug] proxy_util.c(1839): proxy: worker proxy:reverse already initialized
[Mon Jan 20 08:05:19 2014] [debug] proxy_util.c(1936): proxy: initialized single connection worker 0 in child 11450 for (*)
[Mon Jan 20 08:05:19 2014] [debug] proxy_util.c(1820): proxy: grabbed scoreboard slot 0 in child 11451 for worker proxy:reverse
[Mon Jan 20 08:05:19 2014] [debug] proxy_util.c(1839): proxy: worker proxy:reverse already initialized
[Mon Jan 20 08:05:19 2014] [debug] proxy_util.c(1936): proxy: initialized single connection worker 0 in child 11451 for (*)
[Mon Jan 20 08:05:26 2014] [debug] proxy_util.c(1820): proxy: grabbed scoreboard slot 0 in child 11454 for worker proxy:reverse
[Mon Jan 20 08:05:26 2014] [debug] proxy_util.c(1839): proxy: worker proxy:reverse already initialized
[Mon Jan 20 08:05:26 2014] [debug] proxy_util.c(1936): proxy: initialized single connection worker 0 in child 11454 for (*)
[Mon Jan 20 08:05:34 2014] [debug] proxy_util.c(1820): proxy: grabbed scoreboard slot 0 in child 11456 for worker proxy:reverse
[Mon Jan 20 08:05:34 2014] [debug] proxy_util.c(1839): proxy: worker proxy:reverse already initialized
[Mon Jan 20 08:05:34 2014] [debug] proxy_util.c(1936): proxy: initialized single connection worker 0 in child 11456 for (*)

Apache 设置如下:

StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit      256
MaxClients       1024
MaxRequestsPerChild 4000

ProxyRequest On

我的设置有问题吗?这个问题和代理设置有关吗?我在网上搜索了2-3天,但仍然没有找到解决方案。希望你们能帮忙。非常感谢。

相关内容