Nginx 上游超时

Nginx 上游超时

我是 Nginx 和 Tomcat 设置的新手。有人能帮我理解这个错误信息是什么意思吗?

2014/09/21 00:10:03 [error] 293#0: *127 upstream timed out (60: Operation timed out) while reading response header from upstream, client: 192.168.10.211, server: my.server.com, request: "POST /path/dosomething.json HTTP/1.1", upstream: "http://192.168.10.11:7070/path/dosomething.json";, host: "my.server.com"

当 nginx 上的调试模式打开时。

2014/09/21 13:19:54 [error] 303#0: *37 upstream timed out (60: Operation timed out) while reading response header from upstream, client: --- same as above ---

7070Tomcat。我注意到,在 tomcat 重新启动后,此方法对第一个查询有效。但此后的下一个查询会给出上述错误消息。nginx并且Tomcat位于同一个框中。

有人可以告诉我这个错误信息是什么意思以及如何解决这个问题。

谢谢

答案1

这意味着请求后http://192.168.10.11:7070/path/dosomething.jsonnginx 会挂起读取proxy_read_timeout秒后,用于与 tomcat 服务器通信的套接字仍未收到任何数据。请调查 tomcat 端,以了解其未及时响应的原因。

相关内容