Thanks for the tips Chris. 

I had tried AJP PING/PONG options which worked for a while, but not 
consistently. Seems like a better solution would be to work with network folks 
regarding firewall config. 

Just want to mention a nice Perl script that I found during debugging: 
http://www.perlmonks.org/?node_id=766945 , useful for sending AJP ping requests 
to Tomcat independent of web server. 

--
Shantanu.


On Dec 16, 2010, at 1:54 PM, Christopher Schultz wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Shantanu,
> 
> On 12/15/2010 5:45 PM, Shantanu Pavgi wrote:
>> There was a firewall between two systems (distinct from CentOS
>> iptables), which dropped (idle) connections after some time. Not sure
>> about exact firewall config here. The Apache web server would throw
>> an 500/503 error when it tried to reuse an open connection which
>> firewall had already closed.  The issue was resolved by using
>> disablereuse parameter in ProxyPass directive.
>> http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass
> 
> mod_jk (and therefore AJP) supports a ping operation in order to keep
> the channels open but validate them (and re-connect if necessary) before
> using them. You might want to look for those options in mod_proxy_ajp to
> improve performance.
> 
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAk0Kbn4ACgkQ9CaO5/Lv0PBZGACfVg8rodAPEAn7bhqm3OGJrifC
> SrkAoIeWVDqZ+3Q0i4g8hcJ/10HXLrxY
> =9H2n
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> 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