Tomcat 随机停止接收请求并返回错误 503。
我在已更新的 Ubuntu 12.04 TLS 上运行了 tomcat 7。
在 apache 错误日志中您可以看到以下跟踪:
[Wed Mar 04 09:36:27 2015] [error] (111)Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:8080 (localhost) failed
[Wed Mar 04 09:36:27 2015] [error] ap_proxy_connect_backend disabling worker for (localhost)
[Wed Mar 04 09:36:27 2015] [error] (111)Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:8080 (localhost) failed
[Wed Mar 04 09:36:27 2015] [error] ap_proxy_connect_backend disabling worker for (localhost)
[Wed Mar 04 09:36:27 2015] [error] (111)Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:8080 (localhost) failed
[Wed Mar 04 09:36:27 2015] [error] (111)Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:8080 (localhost) failed
[Wed Mar 04 09:36:27 2015] [error] ap_proxy_connect_backend disabling worker for (localhost)
任何 tomcat 日志文件 (catalina) 中都没有任何错误痕迹 :S
这不是由内存泄漏 Head Space 或 Java Head Space 引起的,因为我导致了这些问题并且错误痕迹出现在日志文件中(此外,我检查了代码并且任何文件上都没有 system.exit() :P)。
我很困惑,不明白发生了什么,提前谢谢您!