Я запускаю Apache tomcat + mod_jk 1.2.40 за веб-сервером apache.
Все настроено и работает правильно в течение некоторого времени с момента запуска 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 initialized» означает, что mod_jk запускается: если я перезапущу tomcat, все снова будет работать правильно в течение нескольких дней / недель.
Не могли бы вы дать мне какое-нибудь предложение? Спасибо