Sorry, I forgot to ask you for your JkMount options. Also what kind of firewall do you use? IPTables? If yes please check that you have something like this in your rules: -A YOUR_CHAIN -m state --state RELATED,ESTABLISHED -j ACCEPT On 10/2/06, Durbha Murali - mdurbh <Murali.Durbha@xxxxxxxxxx> wrote:
Serge, Thanks for responding. Connectors and workers.properties given below. Please note that there is a firewall between server running Apache and the server running Tomcat. All the required ports are open...since the connection does go thru 3 out of 5 times. I found some documentation about adding socket_keepalive=True, and have added it. I'm still testing and don't know if that helped or not. I'd appreciate any thoughts or ideas. Thanks Murali -------------------------------------------------------------- worker.properties # #------ DEFAULT ajp13 WORKER DEFINITION ------------------------------ #--------------------------------------------------------------------- # # # Defining a worker named ajp13 and of type ajp13 # Note that the name and the type do not have to match. # worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 # # Specifies the load balance factor when used with # a load balancing worker. # Note: # ----> lbfactor must be > 0 # ----> Low lbfactor means less work done by the worker. worker.ajp13.lbfactor=1 # # Specify the size of the open connection cache. #worker.ajp13.cachesize # application specific worker.ProspectService.type=ajp13 worker.ProspectService.port=8009 worker.ProspectService.host=xxx worker.ProspectService.cachesize=5 # mdurbh, to fix problem with intermittent connection failure worker.ProspectService.socket_keepalive=True <!-- ==================== Connectors from tomcat's server.xml==================== --> <!-- Normal HTTP --> <Connector className="org.apache.tomcat.service.PoolTcpConnector"> <Parameter name="handler" value="org.apache.tomcat.service.http.HttpConnectionHandler"/> <Parameter name="port" value="8080"/> </Connector> <!-- Uncomment this for SSL support. You _need_ to set up a server certificate if you want this to work, and you need JSSE. 1. Add JSSE jars to CLASSPATH 2. Edit java.home/jre/lib/security/java.security Add: security.provider.2=com.sun.net.ssl.internal.ssl.Provider 3. Do: keytool -genkey -alias tomcat -keyalg RSA RSA is essential to work with Netscape and IIS. Use "changeit" as password. ( or add keypass attribute ) You don't need to sign the certificate. You can set parameter keystore and keypass if you want to change the default ( user.home/.keystore with changeit ) --> <!-- <Connector className="org.apache.tomcat.service.PoolTcpConnector"> <Parameter name="handler" value="org.apache.tomcat.service.http.HttpConnectionHandler"/> <Parameter name="port" value="8443"/> <Parameter name="socketFactory" value="org.apache.tomcat.net.SSLSocketFactory" /> </Connector> --> <!-- Apache AJP12 support. This is also used to shut down tomcat. --> <Connector className="org.apache.tomcat.service.PoolTcpConnector"> <Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/> <!-- Apache AJP12 support. This is also used to shut down tomcat. --> <Connector className="org.apache.tomcat.service.PoolTcpConnector"> <Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/> <Parameter name="port" value="8007"/> </Connector> <!-- Apache AJP13 support. --> <Connector className="org.apache.tomcat.service.PoolTcpConnector"> <Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/> <Parameter name="port" value="8009"/> </Connector> -----Original Message----- From: Serge Dubrouski [mailto:sergeyfd@xxxxxxxxx] Sent: Monday, October 02, 2006 12:44 PM To: users@xxxxxxxxxxxxxxxx Subject: Re: [users@httpd] RE: Apache/Tomcat request hangs intermittently Can you post "connectors" part of your Tomcat's server.xml and your workers.properties? On 10/2/06, Durbha Murali - mdurbh <Murali.Durbha@xxxxxxxxxx> wrote: > > > > > Can anyone help me out with this please? I'm just completely stuck. > > Thanks > > > > > > ________________________________ > > > From: Durbha Murali - mdurbh > Sent: Friday, September 29, 2006 4:06 PM > To: 'users@xxxxxxxxxxxxxxxx' > Subject: RE: Apache/Tomcat request hangs intermittently > > > > > > Just to add to this, I'm also getting the following error in tomcat > connector's mod_jk.log > > > > [Fri Sep 29 14:37:26 2006] [1605:50880] [error] > ajp_get_reply::jk_ajp_common.c (1531): Tomcat is down or refused connection. > No response has been sent to the client (yet) > > [Fri Sep 29 15:12:42 2006] [1610:50880] [error] > ajp_connection_tcp_get_message::jk_ajp_common.c (961): > Can't receive the response message from tomcat, network problems or tomcat > is down (139.x.x.x:8009), err=-110 > > [Fri Sep 29 15:12:42 2006] [1610:50880] [error] > ajp_get_reply::jk_ajp_common.c (1531): Tomcat is down or refused connection. > No response has been sent to the client (yet) > > ________________________________ > > > From: Durbha Murali - mdurbh > Sent: Friday, September 29, 2006 2:44 PM > To: 'users@xxxxxxxxxxxxxxxx' > Subject: Apache/Tomcat request hangs intermittently > > > > We have a webserver with Apache 2.2.2 running that acts as a pass-thru, > forwarding all POST requests from the internet to Tomcat. > > The connection works but sometimes, a request on the webserver just hangs. > If I re-try a few times, the webpage eventually opens. I'm not quite sure > what is causing this. If I bounce Apache, it works normally for a few hours > and the problem starts again. For Debug Loglevel, I get the following > errors in error_log. I'm not quite sure if this has anything to do with my > problem - > > > > [Fri Sep 29 11:07:46 2006] [info] [client 10.x.x.x] (32)Broken pipe: > core_output_filter: writing data to the network > > [Fri Sep 29 11:07:51 2006] [info] [client 10.x.x.x] (104)Connection reset by > peer: core_output_filter: writing data to the network > > [Fri Sep 29 11:07:51 2006] [info] [client 10.x.x.x] (32)Broken pipe: > core_output_filter: writing data to the network > > [Fri Sep 29 11:08:10 2006] [info] [client 10.x.x.x] (104)Connection reset by > peer: core_output_filter: writing data to the network > > [Fri Sep 29 11:08:10 2006] [info] [client 10.x.x.x] (32)Broken pipe: > core_output_filter: writing data to the network > > [Fri Sep 29 11:08:25 2006] [info] [client 10.x.x.x] (104)Connection reset by > peer: core_output_filter: writing data to the network > > [Fri Sep 29 11:08:25 2006] [info] [client 10.x.x.x] (32)Broken pipe: > core_output_filter: writing data to the network > > [Fri Sep 29 11:09:18 2006] [info] [client 10.x.x.x] (104)Connection reset by > peer: core_output_filter: writing data to the network > > [Fri Sep 29 11:09:18 2006] [info] [client 10.x.x.x] (32)Broken pipe: > core_output_filter: writing data to the network > > > > > > When I do a netstat -a on the webserver, I see that the connection has been > established, but my browser just keeps spinning and spinning. > > > > tcp 0 0 *:8000 *:* > LISTEN > > tcp 0 0 <webserver>:8000 ::ffff:<mylocalIP>:1757 ESTABLISHED > > > > This is our Production website. Can someone please help me out? > > > > Thanks very much. > > Murali > > > ************************************************************************ * > The information contained in this communication is confidential, is > intended only for the use of the recipient named above, and may be > legally privileged. > > If the reader of this message is not the intended recipient, you are > hereby notified that any dissemination, distribution or copying of this > communication is strictly prohibited. > > If you have received this communication in error, please resend this > communication to the sender and delete the original message or any copy > of it from your computer system. > > Thank you. > ************************************************************************ * > > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx