We have an Apache server and a Tomcat, connected via ajp protocol.
ProxyPass /foo ajp://foo.bar.baz:8009
ProxyPassReverse /foo ajp://foo.bar.baz:8009
Now, after restarting Tomcat and Apache, it takes precisely 30 seconds till requests to /foo are answered. This is the exact same time on every machine, which leads me to believe that there is some configurable timeout somewhere.
A colleague of mine conjectured that Apache's ajp proxy module might poll for Tomcat every 30 seconds, but I haven't found any further information on that.
So my basic question is: What is really going on and how can we make the restart faster?
edit:
Adding connectiontimeout=5 timeout=5 to the ProxyPass config did not have any effect.
ProxyPass /foo ajp://foo.bar.baz:8009 retry=0, however since the default value is 60 (seconds) and not 30 it seems a bit unlikely that this is the cause. How fast is your Tomcat application actually back up and accepting requests? – brain99 Sep 4 '12 at 15:38