mod_jk 与 tomcat 失去连接

mod_jk 与 tomcat 失去连接

我在 apache web 服务器后面运行 Apache tomcat + mod_jk 1.2.40。

自 tomcat 启动以来,一切都已设置好并正常运行了一段时间(以天/周为单位);然后发生了一些事情,mod_jk 失去了与 tomcat 的连接。

除了发生的事情(实际上我不确定发生了什么,我正在排除故障),我还在寻求有关 jk 和 tomcat 之间连接丢失的原因的一些支持。以下是 mod_jk 日志中有关连接丢失问题的部分:

[Wed Dec 10 09:28:21 2014] [26331:140365639858112] [info] init_jk::mod_jk.c (3383): mod_jk/1.2.40 initialized
[Wed Dec 10 09:28:37 2014] [12546:140365639858112] [info] ajp_send_request::jk_ajp_common.c (1652): (workerName) all endpoints are disconnected, detected by connect check (1), cping (0), send (0)
...
[Wed Dec 10 09:28:49 2014] [26331:140365639858112] [info] init_jk::mod_jk.c (3383): mod_jk/1.2.40 initialized
[Wed Dec 10 09:29:02 2014] [13683:140365639858112] [info] jk_open_socket::jk_connect.c (758): connect to 127.0.0.1:8071 failed (errno=111)
[Wed Dec 10 09:29:02 2014] [13683:140365639858112] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1019): Failed opening socket to (127.0.0.1:8071) (errno=111)
[Wed Dec 10 09:29:02 2014] [13683:140365639858112] [error] ajp_send_request::jk_ajp_common.c (1663): (workerName) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)
[Wed Dec 10 09:29:02 2014] [13683:140365639858112] [info] ajp_service::jk_ajp_common.c (2673): (workerName) sending request to tomcat failed (recoverable), because of error during request sending (attempt=1)
[Wed Dec 10 09:29:02 2014] [13626:140365639858112] [info] jk_open_socket::jk_connect.c (758): connect to 127.0.0.1:8071 failed (errno=111)
[Wed Dec 10 09:29:02 2014] [13626:140365639858112] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1019): Failed opening socket to (127.0.0.1:8071) (errno=111)
[Wed Dec 10 09:29:02 2014] [13626:140365639858112] [error] ajp_send_request::jk_ajp_common.c (1663): (workerName) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)
[Wed Dec 10 09:29:02 2014] [13626:140365639858112] [info] ajp_service::jk_ajp_common.c (2673): (workerName) sending request to tomcat failed (recoverable), because of error during request sending (attempt=1)
[Wed Dec 10 09:29:02 2014] [13683:140365639858112] [info] jk_open_socket::jk_connect.c (758): connect to 127.0.0.1:8071 failed (errno=111)
[Wed Dec 10 09:29:02 2014] [13683:140365639858112] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1019): Failed opening socket to (127.0.0.1:8071) (errno=111)
[Wed Dec 10 09:29:02 2014] [13683:140365639858112] [error] ajp_send_request::jk_ajp_common.c (1663): (workerName) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)
[Wed Dec 10 09:29:02 2014] [13683:140365639858112] [info] ajp_service::jk_ajp_common.c (2673): (workerName) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)
[Wed Dec 10 09:29:02 2014] [13683:140365639858112] [error] ajp_service::jk_ajp_common.c (2693): (workerName) connecting to tomcat failed.
[Wed Dec 10 09:29:02 2014] [13683:140365639858112] [info] jk_handler::mod_jk.c (2806): Service error=-3 for worker=workerName

我认为“mod_jk/1.2.40 已初始化”意味着 mod_jk 正在启动:如果我重新启动 tomcat,一切都会在几天/几周内再次正常运行。

你能给我一些建议吗?谢谢

相关内容