Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?


Adding connectiontimeout=5 timeout=5 to the ProxyPass config did not have any effect.

share|improve this question
The ProxyPass directive can have an optional retry option added: 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
Actually, the 30 seconds also remain if only Apache is restarted while Tomcat keeps running, so it's probably not a problem with Tomcat as such, but with the AJP connectors on either side. –  Pumbaa80 Sep 5 '12 at 7:30
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.