Ondrej Tokar Ondrej Tokar - 1 year ago 839
Apache Configuration Question

proxy_ajp:error (70007)The timeout specified has expired:

I am getting the error in the

. I was able to figure out that I need to increase

However, I was unable to find where may I change it. All I could do was adding this to the

<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
redirectPort="8443" />

Any idea how to exactly increase the
I am using
Apache Tomcat v7

I have tried to add this into

ProxyRequests On
<Proxy *>
AddDefaultCharset off
Order deny,allow
Allow from all
ProxyPreserveHost Off
ProxyTimeout 1200

I have also added this into

TimeOut 600

I have restarted the Tomcat server but neither of the above configurations helped.

Btw this is the exact error, I don't understand why there is proxy mentioned. I am not connecting through any proxy server... The issue happens when I submit a form, which triggers some tough processing. Then it times out in approx. 60 seconds. However, the program still runs, only the request times out.


[Thu Aug 13 07:34:21.677693 2015] [proxy_ajp:error] [pid 1515] (70007)The timeout specified has expired: AH01030: ajp_ilink_receive() can't receive header
[Thu Aug 13 07:34:21.677769 2015] [proxy_ajp:error] [pid 1515] [client] AH00992: ajp_read_header: ajp_ilink_receive failed, referer:
[Thu Aug 13 07:34:21.677782 2015] [proxy_ajp:error] [pid 1515] (70007)The timeout specified has expired: [client] AH00878: read response failed from (localhost), referer:

Answer Source

I have solved it by adding this two simple lines into httpd.conf file:

Timeout 600
ProxyTimeout 600

I also had to reboot the whole server, not just Tomcat. No idea if that was necessary, but seems like it.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download