我在error_log
中遇到了错误。我发现需要增加ProxyTimeout
。
然而,我找不到应该在哪里更改它。我只能将这个添加到server.xml
中:
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="600000"
redirectPort="8443" />
你有没有想过如何准确地增加ProxyTimeout
?
我正在使用来自AWS
的Ubuntu
和Apache Tomcat v7
我尝试将以下内容添加到proxy-html.conf
中:
ProxyRequests On
<Proxy *>
AddDefaultCharset off
Order deny,allow
Allow from all
</Proxy>
ProxyPreserveHost Off
ProxyTimeout 1200
我已经将这个添加到
httpd.conf
中:TimeOut 600
我已经重新启动了Tomcat服务器,但以上配置都没有帮助。
顺便说一下,这是确切的错误,我不明白为什么会提到代理。我没有通过任何代理服务器连接...问题发生在我提交表单时,这会触发一些复杂的处理。然后在大约60秒后超时。然而,程序仍在运行,只是请求超时了。
错误:
[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 212.130.108.58:52206] AH00992: ajp_read_header: ajp_ilink_receive failed, referer: http://52.17.109.177/Visma_UploadInterface/MappingServlet
[Thu Aug 13 07:34:21.677782 2015] [proxy_ajp:error] [pid 1515] (70007)The timeout specified has expired: [client 212.130.108.58:52206] AH00878: read response failed from 127.0.0.1:8009 (localhost), referer: http://52.17.109.177/Visma_UploadInterface/MappingServlet
ProxyTimeout 600
来增加代理超时时间,然后重新启动 Apache (而不是 Tomcat)。 - Joe Ernst