for telnet immediate connection refused is given
telnet 10.xxx.xxx.xx 8911 Trying 10.xx.xx.x... telnet: connect to address 10.xx.x.xx: Connection refused here is the error log for the specifed time [Fri Feb 27 02:26:14.463 2015] [31713:140059770595072] [error] ajp_service::jk_ajp_common.c (2643): (tomcat-live-11) connecting to tomcat failed. [Fri Feb 27 02:27:30.458 2015] [3471:140059728635648] [error] ajp_send_request::jk_ajp_common.c (1630): (tomcat-live-11) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111) [Fri Feb 27 02:27:30.560 2015] [3471:140059728635648] [error] ajp_send_request::jk_ajp_common.c (1630): (tomcat-live-11) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111) [Fri Feb 27 02:27:30.560 2015] [3471:140059728635648] [error] ajp_service::jk_ajp_common.c (2643): (tomcat-live-11) connecting to tomcat failed. [Fri Feb 27 02:28:14.585 2015] [31713:140059550308096] [error] ajp_send_request::jk_ajp_common.c (1630): (tomcat-live-11) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111) [Fri Feb 27 02:28:14.686 2015] [31713:140059550308096] [error] ajp_send_request::jk_ajp_common.c (1630): (tomcat-live-11) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111) [Fri Feb 27 02:28:14.687 2015] [31713:140059550308096] [error] ajp_service::jk_ajp_common.c (2643): (tomcat-live-11) connecting to tomcat failed. [Fri Feb 27 02:29:14.401 2015] [31713:140059728635648] [error] ajp_send_request::jk_ajp_common.c (1630): (tomcat-live-11) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111) [Fri Feb 27 02:29:14.503 2015] [31713:140059728635648] [error] ajp_send_request::jk_ajp_common.c (1630): (tomcat-live-11) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111) [Fri Feb 27 02:29:14.503 2015] [31713:140059728635648] [error] ajp_service::jk_ajp_common.c (2643): (tomcat-live-11) connecting to tomcat failed. [Fri Feb 27 02:30:40.149 2015] [31713:140059739125504] [error] ajp_send_request::jk_ajp_common.c (1630): (tomcat-live-11) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111) [Fri Feb 27 02:30:40.250 2015] [31713:140059739125504] [error] ajp_send_request::jk_ajp_common.c (1630): (tomcat-live-11) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111) [Fri Feb 27 02:30:40.251 2015] [31713:140059739125504] [error] ajp_service::jk_ajp_common.c (2643): (tomcat-live-11) connecting to tomcat failed. [Fri Feb 27 02:31:15.442 2015] [31713:140059644716800] [error] ajp_send_request::jk_ajp_common.c (1630): (tomcat-live-11) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111) [Fri Feb 27 02:31:15.543 2015] [31713:140059644716800] [error] ajp_send_request::jk_ajp_common.c (1630): (tomcat-live-11) connecting to backend failed. Tomcat is probably not started or is listening on On Mon, Mar 2, 2015 at 4:28 PM, Rainer Jung <rainer.j...@kippdata.de> wrote: > Am 02.03.2015 um 11:34 schrieb Rajesh Cherukuri: > >> rainer >> >> looks like what you said is correct , but not sure why the Mod_jk has to >> wait for 10 seconds when the backend tomcat servers is down >> > > Because your network layer behaves like that. It simply hangs for (more > than) 10 seconds. You should be able to observer that yourself e.g. using > > telnet tomcatserverip tomcatajpport > > It should hang that long as well. > > here is the error log i don't see that any place where it is aitng for 20 >> sec >> > > The situation you want to discuss happened at 02:28:14, the log snippet is > from 01:28:35 to 01:33:31. So they do not match. > > > error log >> >> [Thu Feb 26 01:28:35.432 2015] [19535:140214433396480] [error] >> ajp_send_request::jk_ajp_common.c (1630): (tomcat-live-11) connecting to >> backend fai >> led. Tomcat is probably not started or is listening on the wrong port >> (errno=111) >> [Thu Feb 26 01:28:35.534 2015] [19535:140214433396480] [error] >> ajp_send_request::jk_ajp_common.c (1630): (tomcat-live-11) connecting to >> backend fai >> led. Tomcat is probably not started or is listening on the wrong port >> (errno=111) >> [Thu Feb 26 01:28:35.534 2015] [19535:140214433396480] [error] >> ajp_service::jk_ajp_common.c (2643): (tomcat-live-11) connecting to tomcat >> failed. >> [Thu Feb 26 01:30:26.182 2015] [19536:140214611724032] [error] >> ajp_send_request::jk_ajp_common.c (1630): (tomcat-live-11) connecting to >> backend fai >> led. Tomcat is probably not started or is listening on the wrong port >> (errno=111) >> [Thu Feb 26 01:30:26.284 2015] [19536:140214611724032] [error] >> ajp_send_request::jk_ajp_common.c (1630): (tomcat-live-11) connecting to >> backend fai >> led. Tomcat is probably not started or is listening on the wrong port >> (errno=111) >> [Thu Feb 26 01:30:26.284 2015] [19536:140214611724032] [error] >> ajp_service::jk_ajp_common.c (2643): (tomcat-live-11) connecting to tomcat >> failed. >> [Thu Feb 26 01:30:32.670 2015] [19538:140214548784896] [error] >> ajp_send_request::jk_ajp_common.c (1630): (tomcat-live-11) connecting to >> backend fai >> led. Tomcat is probably not started or is listening on the wrong port >> (errno=111) >> [Thu Feb 26 01:30:32.772 2015] [19538:140214548784896] [error] >> ajp_send_request::jk_ajp_common.c (1630): (tomcat-live-11) connecting to >> backend fai >> led. Tomcat is probably not started or is listening on the wrong port >> (errno=111) >> [Thu Feb 26 01:30:32.772 2015] [19538:140214548784896] [error] >> ajp_service::jk_ajp_common.c (2643): (tomcat-live-11) connecting to tomcat >> failed. >> [Thu Feb 26 01:31:37.441 2015] [19535:140214318008064] [error] >> ajp_send_request::jk_ajp_common.c (1630): (tomcat-live-11) connecting to >> backend fai >> led. Tomcat is probably not started or is listening on the wrong port >> (errno=111) >> [Thu Feb 26 01:31:37.543 2015] [19535:140214318008064] [error] >> ajp_send_request::jk_ajp_common.c (1630): (tomcat-live-11) connecting to >> backend fai >> led. Tomcat is probably not started or is listening on the wrong port >> (errno=111) >> [Thu Feb 26 01:31:37.543 2015] [19535:140214318008064] [error] >> ajp_service::jk_ajp_common.c (2643): (tomcat-live-11) connecting to tomcat >> failed. >> [Thu Feb 26 01:32:29.323 2015] [19534:140214338987776] [error] >> ajp_send_request::jk_ajp_common.c (1630): (tomcat-live-11) connecting to >> backend fai >> led. Tomcat is probably not started or is listening on the wrong port >> (errno=111) >> [Thu Feb 26 01:32:29.425 2015] [19534:140214338987776] [error] >> ajp_send_request::jk_ajp_common.c (1630): (tomcat-live-11) connecting to >> backend fai >> led. Tomcat is probably not started or is listening on the wrong port >> (errno=111) >> [Thu Feb 26 01:32:29.425 2015] [19534:140214338987776] [error] >> ajp_service::jk_ajp_common.c (2643): (tomcat-live-11) connecting to tomcat >> failed. >> [Thu Feb 26 01:33:31.431 2015] [19536:140214569764608] [error] >> ajp_send_request::jk_ajp_common.c (1630): (tomcat-live-11) connecting to >> backend fai >> led. Tomcat is probably not started or is listening on the wrong port >> (errno=111) >> [Thu Feb 26 01:33:31.532 2015] [19536:140214569764608] [error] >> ajp_send_request::jk_ajp_common.c (1630): (tomcat-live-11) connecting to >> backend fai >> led. Tomcat is probably not started or is listening on the wrong port ( >> >> On Mon, Mar 2, 2015 at 3:47 PM, Rainer Jung <rainer.j...@kippdata.de> >> wrote: >> >> Am 02.03.2015 um 10:45 schrieb Rajesh Cherukuri: >>> >>> here is what i can see in modJk log file , we have stopped tomcat 11 a >>>> week >>>> back , >>>> >>>> >>>> 172.xxxxx [27/Feb/2015:*02:28:14* +0000] "GET /xxxxxx/deal-finder >>>> HTTP/1.1"200 15172 20 *lb* tomcat--11** 0 26712 12118 >>>> **tomcat-03** >>>> 0 820679 4 *20.352845* – >>>> >>>> >>>> worker configuration >>>> >>>> >>>> *here is my work.property file* >>>> >>>> *worker.lb.common.type=ajp13worker.lb.common. >>>> lbfactor=1worker.lb.common. >>>> ping_mode=Aworker.lb.common.socket_connect_timeout=10000# >>>> worker.lb.common.connection_pool_size=6worker.lb.common. >>>> connection_pool_timeout=600worker.lb.common.socket_keepalive=True* >>>> >>>> >>> That is not a production ready config. >>> >>> - update to the recent version 1.2.40 (if your version is older) >>> >>> - build your configuration starting from the *source* download linked on >>> http://tomcat.apache.org/download-connectors.cgi. In the source download >>> (tarball or zip) there's a conf folder containing a workers.properties >>> and >>> a httpd-jk.conf file. Look at those and adjust to your environment. They >>> contain generally useful timeouts etc. >>> >>> The 20 seconds you are noticing are likely 10 seconds (connect_timeout) >>> times 2 (retries). >>> >>> If the server for a Tomcat worker is up and Tomcat itself is down, the >>> server should typically reject a new connect very fast, because nothing >>> is >>> listening to the port. >>> >>> If the server is down it depends on the network situation, whether you >>> get >>> a fast error (e.g. no route to host etc.) or whether it takes long. >>> >>> If the server is up and Tomcat is up, but your Tomcat jvm doesn't >>> respond, >>> it again depends on the details. >>> >>> If you know, that a node is down, then you should set its activation to >>> "stopped" to let mod_jk know, that it should no longer try to use it. >>> >>> You mod_jk log should show more information than what you posted. >>> >>> >>> Regards, >>> >>> Rainer >>> >> > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >