Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got my apache (2.2.3) talking to tomcat 6.something through mod_proxy_ajp.

I have some ridiculously long lived requests (2-6 minutes) and I think we're hitting some default timeout somewhere... where is the correct place to bump that up?

here is my proxy def:

<Location /blah>
  ProxyPass ajp://localhost:8010/blah
  ProxyPassReverse ajp://localhost:8010/blah
share|improve this question
up vote 11 down vote accepted

I can't say I've tried this, but I was interested in the question, so I did a bit of googling around and found this:

ProxyTimeout directive

This directive allows a user to specifiy a timeout on proxy requests. This is useful when you have a slow/buggy appserver which hangs, and you would rather just return a timeout and fail gracefully instead of waiting however long it takes the server to return.

The default value is the value of the Timeout directive, which in turn defaults to 300 seconds. So try bumping up ProxyTimeout and see if it helps.

P.S. Keep in mind that Tomcat might have its own timeout(s), too. This document has some more information (although, keep in mind, I don't have personal experience with these settings).

share|improve this answer

If you'd like to change the timeout just for the ajp proxy and not globally you can add the "timeout" parameter, like so:

<Location /blah>
  ProxyPass ajp://localhost:8010/blah timeout=600
  ProxyPassReverse ajp://localhost:8010/blah
share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.