> 
> Centos 5.8, x86_64, apache 2.2.22, java 1.6.0_32, tomcat 7.0.27, apr
> 1.4.6 (also happens on another machine with apache 2.2.21 and java
> 1.6.0_29, rest of the versions are the same)
> 

FWIW I also tried the following combos with the same effects:

tomcat 7.0.25/jni 1.1.22/apr 1.4.5
tomcat 7.0.25/jni 1.1.22/apr 1.4.6
tomcat 7.0.26/jni 1.1.22/apr 1.4.6

-Tony



> Connecting apache to tomcat ajp, same machine.
> Once I upgraded to 1.2.36 I started receiving 503 errors when trying
to
> access my webapps.
> 1.2.32 and 1.2.35 work fine.
> 
> Tomcat catalina.out and access logs show nothing
> 
> Jk log shows:
> [Wed May 23 15:56:32 2012] [32504:1138178368] [debug]
> ajp_get_endpoint::jk_ajp_common.c (3154): acquired connection pool
> slot=0 after 0 retries
> [Wed May 23 15:56:32 2012] [32504:1138178368] [debug]
> ajp_marshal_into_msgb::jk_ajp_common.c (626): ajp marshaling done
> [Wed May 23 15:56:32 2012] [32504:1138178368] [debug]
> ajp_service::jk_ajp_common.c (2449): processing app-03 with 2 retries
> [Wed May 23 15:56:32 2012] [32504:1138178368] [debug]
> ajp_send_request::jk_ajp_common.c (1623): (app-03) all endpoints are
> disconnected.
> [Wed May 23 15:56:32 2012] [32504:1138178368] [debug]
> jk_open_socket::jk_connect.c (485): socket TCP_NODELAY set to On
> [Wed May 23 15:56:32 2012] [32504:1138178368] [debug]
> jk_open_socket::jk_connect.c (574): timeout 20 set for socket=22
> [Wed May 23 15:56:32 2012] [32504:1138178368] [debug]
> jk_open_socket::jk_connect.c (609): trying to connect socket 22 to
> 0.0.0.0:0
> [Wed May 23 15:56:32 2012] [32504:1138178368] [debug]
> jk_open_socket::jk_connect.c (635): socket 22 [errno=107] connected
> [Wed May 23 15:56:32 2012] [32504:1138178368] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (1183): sending to
> ajp13 pos=4 len=5 max=16
> [Wed May 23 15:56:32 2012] [32504:1138178368] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (1183): 0000    12 34
> 00 01 0A 00 00 00 00 00 00 00 00 00 00 00  - .4..............
> [Wed May 23 15:56:32 2012] [32504:1138178368] [debug]
> jk_shutdown_socket::jk_connect.c (732): About to shutdown socket 22
> [errno=107]
> [Wed May 23 15:56:32 2012] [32504:1138178368] [debug]
> jk_shutdown_socket::jk_connect.c (741): Failed sending SHUT_WR for
> socket 22 [errno=107]
> [Wed May 23 15:56:32 2012] [32504:1138178368] [info]
> ajp_connection_tcp_send_message::jk_ajp_common.c (1215): sendfull for
> socket 22 returned -32 (errno=32)
> [Wed May 23 15:56:32 2012] [32504:1138178368] [info]
> ajp_handle_cping_cpong::jk_ajp_common.c (902): can't send cping query
> [Wed May 23 15:56:32 2012] [32504:1138178368] [error]
> ajp_connect_to_endpoint::jk_ajp_common.c (1026): (app-03) cping/cpong
> after connecting to the backend server failed (errno=32)
> [Wed May 23 15:56:32 2012] [32504:1138178368] [error]
> ajp_send_request::jk_ajp_common.c (1629): (app-03) connecting to
> backend
> failed. Tomcat is probably not started or is listening on the wrong
port
> (errno=32)
> [Wed May 23 15:56:32 2012] [32504:1138178368] [info]
> ajp_service::jk_ajp_common.c (2622): (app-03) sending request to
tomcat
> failed (recoverable), because of error during request sending
> (attempt=1)
> 
> I also noticed that a tcpdump shows 0 packets to and from on the lo
> interface
> 
> httpd.conf settings are:
> 
> JkWorkersFile /path/to/workers.properties
> JkWatchdogInterval 60
> JkLogFile     /path/to/GLOBAL-mod_jk.log
> JkLogLevel    debug
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
> JkOptions +ForwardKeySize +ForwardURIProxy -ForwardDirectories
> JkRequestLogFormat "%w %R %V %B %T %m %U %s"
> JkShmFile logs/jk-runtime-status
> JkMount /webapp/* loadbalancer
> 
> workers.properties settings are:
> 
> worker.list=jkstatus,app-03,loadbalancer
> worker.template.port=8009
> worker.template.type=ajp13
> worker.template.lbfactor=1
> worker.template.connection_pool_timeout=30
> worker.template.connect_timeout=30000
> worker.template.recovery_options=4
> worker.template.reply_timeout=31000
> worker.template.socket_timeout=20
> worker.template.socket_connect_timeout=5000
> worker.template.ping_mode=A
> worker.template.ping_timeout=20000
> worker.app-03.host=127.0.0.1
> worker.app-03.reference=worker.template
> worker.jkstatus.type=status
> worker.loadbalancer.sticky_session=1
> worker.loadbalancer.type=lb
> worker.loadbalancer.balance_workers=app-03
> 
> server.xml settings are:
> 
>         <Connector port="8009" protocol="AJP/1.3"
>                         maxThreads="1000" backlog="25"
> maxPostSize="4194304"
>                         enableLookups="false"
connectionTimeout="30000"
> keepAliveTimeout="10000"
>                         redirectPort="8443" />
> 
> # netstat -anop | grep 8009
> tcp        0      0 0.0.0.0:8009                0.0.0.0:*
> LISTEN      30151/jsvc.exec     off (0.00/0/0)
> 
> -Tony
> ---------------------------
> Manager, IT Operations
> Format Dynamics, Inc.
> P: 303-228-7327
> F: 303-228-7305
> abia...@formatdynamics.com
> http://www.formatdynamics.com
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to