這幾天被集羣併發問題快折騰死了,望哪位高人看下究竟是哪裏出現了問題。 Apache Server是正常的,各服務器的Tomcat 也是正常的,但當Apache的鏈接數達到 300左右的時候,JK就會出現以下的異常信息,而後整個系統就崩潰了,這些都是經過JK訪問的,就沒法打開了。可是各分服務器訪問仍是正常的。 若是把Apache重啓後,訪問速度又很順暢了。因此如今初步斷定是 Jk的問題。tomcat
JK work.properties的配置以下:服務器
#Set the tomcat1 for the Server worker.list=loadbalancer,status,tomcat1,tomcat6,tomcat7 worker.tomcat1.port=8009 worker.tomcat1.host=localhost worker.tomcat1.type=ajp13 worker.tomcat1.lbfactor=2併發
#Set the tomcat2 #worker.tomcat2.port=8009 #worker.tomcat2.host=192.168.1.203 #worker.tomcat2.type=ajp13 #worker.tomcat2.lbfactor=1 #worker.loadbalancer.type=lb #worker.loadbalancer.balance_workers=tomcat2tcp
#Set the tomcat5 for the Front圖片
worker.tomcat5.port=9009 worker.tomcat5.host=localhost worker.tomcat5.type=ajp13 worker.tomcat5.lbfactor=1get
#Set the tomcat6 for the Cluster worker.tomcat6.port=8009 worker.tomcat6.host=110.121.211.205 worker.tomcat6.type=ajp13 worker.tomcat6.lbfactor=1io
#Set the tomcat7 for the Cluster worker.tomcat7.port=7009 worker.tomcat7.host=110.144.0.154 worker.tomcat7.type=ajp13 worker.tomcat7.lbfactor=1集羣
worker.loadbalancer.type=lb worker.lb_s.retries=3 worker.recovery_options=3 worker.loadbalancer.balance_workers=tomcat1,tomcat7,tomcat6cli
worker.status.type=statussed
[Thu Apr 30 14:43:29 2015] [26545:14544] [info] service::jk_lb_worker.c (1098): service failed, worker tomcat1 is in error state [Thu Apr 30 14:43:29 2015] [26586:14544] [error] ajp_connection_tcp_get_message::jk_ajp_common.c (951): (tomcatTaohandan) can't receive the response message from tomcat, network problems or tomcat (10.144.211.205:8009) is down (errno=104) [Thu Apr 30 14:43:29 2015] [26586:14544] [error] ajp_get_reply::jk_ajp_common.c (1592): (tomcatTaohandan) Tomcat is down or refused connection. No response has been sent to the client (yet) [Thu Apr 30 14:43:29 2015] [26586:14544] [info] ajp_service::jk_ajp_common.c (1902): (tomcatTaohandan) receiving from tomcat failed, recoverable operation attempt=0 [Thu Apr 30 14:43:29 2015] [26586:14544] [info] ajp_service::jk_ajp_common.c (1941): (tomcatTaohandan) sending request to tomcat failed, recoverable operation attempt=1 [Thu Apr 30 14:43:30 2015] [26769:14544] [error] ajp_connection_tcp_get_message::jk_ajp_common.c (951): (tomcatTaohandan) can't receive the response message from tomcat, network problems or tomcat (10.144.211.205:8009) is down (errno=104) [Thu Apr 30 14:43:30 2015] [26769:14544] [error] ajp_get_reply::jk_ajp_common.c (1592): (tomcatTaohandan) Tomcat is down or refused connection. No response has been sent to the client (yet) [Thu Apr 30 14:43:30 2015] [26769:14544] [info] ajp_service::jk_ajp_common.c (1902): (tomcatTaohandan) receiving from tomcat failed, recoverable operation attempt=1 [Thu Apr 30 14:43:30 2015] [26769:14544] [info] ajp_service::jk_ajp_common.c (1941): (tomcatTaohandan) sending request to tomcat failed, recoverable operation attempt=2 [Thu Apr 30 14:43:30 2015] [26769:14544] [error] ajp_service::jk_ajp_common.c (1953): (tomcatTaohandan) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port [Thu Apr 30 14:43:30 2015] [26769:14544] [info] service::jk_lb_worker.c (1098): service failed, worker tomcatTaohandan is in error state [Thu Apr 30 14:43:31 2015] [26620:14544] [error] ajp_connection_tcp_get_message::jk_ajp_common.c (951): (tomcat1) can't receive the response message from tomcat, network problems or tomcat (127.0.0.1:8009) is down (errno=104) [Thu Apr 30 14:43:31 2015] [26620:14544] [error] ajp_get_reply::jk_ajp_common.c (1592): (tomcat1) Tomcat is down or refused connection. No response has been sent to the client (yet) [Thu Apr 30 14:43:31 2015] [26620:14544] [info] ajp_service::jk_ajp_common.c (1902): (tomcat1) receiving from tomcat failed, recoverable operation attempt=0 [Thu Apr 30 14:43:31 2015] [26620:14544] [info] ajp_service::jk_ajp_common.c (1941): (tomcat1) sending request to tomcat failed, recoverable operation attempt=1 [Thu Apr 30 14:43:31 2015] [26618:14544] [error] ajp_connection_tcp_get_message::jk_ajp_common.c (951): (tomcatTaohandan) can't receive the response message from tomcat, network problems or tomcat (10.144.211.205:8009) is down (errno=104) [Thu Apr 30 14:43:31 2015] [26618:14544] [error] ajp_get_reply::jk_ajp_common.c (1592): (tomcatTaohandan) Tomcat is down or refused connection. No response has been sent to the client (yet) [Thu Apr 30 14:43:31 2015] [26618:14544] [info] ajp_service::jk_ajp_common.c (1902): (tomcatTaohandan) receiving from tomcat failed, recoverable operation attempt=0 [Thu Apr 30 14:43:31 2015] [26618:14544] [info] ajp_service::jk_ajp_common.c (1941): (tomcatTaohandan) sending request to tomcat failed, recoverable operation attempt=1 [Thu Apr 30 14:43:32 2015] [26770:14544] [error] ajp_connection_tcp_get_message::jk_ajp_common.c (951): (tomcatTaohandan) can't receive the response message from tomcat, network problems or tomcat (10.144.211.205:8009) is down (errno=104) [Thu Apr 30 14:43:32 2015] [26770:14544] [error] ajp_get_reply::jk_ajp_common.c (1592): (tomcatTaohandan) Tomcat is down or refused connection. No response has been sent to the client (yet) [Thu Apr 30 14:43:32 2015] [26770:14544] [info] ajp_service::jk_ajp_common.c (1902): (tomcatTaohandan) receiving from tomcat failed, recoverable operation attempt=1 [Thu Apr 30 14:43:32 2015] [26770:14544] [info] ajp_service::jk_ajp_common.c (1941): (tomcatTaohandan) sending request to tomcat failed, recoverable operation attempt=2 [Thu Apr 30 14:43:32 2015] [26770:14544] [error] ajp_service::jk_ajp_common.c (1953): (tomcatTaohandan) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port [Thu Apr 30 14:43:32 2015] [26770:14544] [info] service::jk_lb_worker.c (1098): service failed, worker tomcatTaohandan is in error state [Thu Apr 30 14:43:33 2015] [25203:14544] [info] ajp_send_request::jk_ajp_common.c (1215): (tomcatchangbao) error sending request. Will try another pooled connection [Thu Apr 30 14:43:33 2015] [25203:14544] [info] ajp_send_request::jk_ajp_common.c (1241): (tomcatchangbao) all endpoints are disconnected [Thu Apr 30 14:43:33 2015] [25203:14544] [info] ajp_send_request::jk_ajp_common.c (1244): (tomcatchangbao) increase the backend idle connection timeout or the connection_pool_minsize [Thu Apr 30 14:43:33 2015] [25203:14544] [info] ajp_service::jk_ajp_common.c (1941): (tomcatchangbao) sending request to tomcat failed, recoverable operation attempt=1 [Thu Apr 30 14:43:33 2015] [25483:14544] [error] ajp_connection_tcp_get_message::jk_ajp_common.c (951): (tomcat1) can't receive the response message from tomcat, network problems or tomcat (127.0.0.1:8009) is down (errno=104) [Thu Apr 30 14:43:33 2015] [25483:14544] [error] ajp_get_reply::jk_ajp_common.c (1592): (tomcat1) Tomcat is down or refused connection. No response has been sent to the client (yet) [Thu Apr 30 14:43:33 2015] [25483:14544] [info] ajp_service::jk_ajp_common.c (1902): (tomcat1) receiving from tomcat failed, recoverable operation attempt=1 [Thu Apr 30 14:43:33 2015] [25483:14544] [info] ajp_service::jk_ajp_common.c (1941): (tomcat1) sending request to tomcat failed, recoverable operation attempt=2 [Thu Apr 30 14:43:33 2015] [25483:14544] [error] ajp_service::jk_ajp_common.c (1953): (tomcat1) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port [Thu Apr 30 14:43:33 2015] [25483:14544] [info] service::jk_lb_worker.c (1098): service failed, worker tomcat1 is in error state