2015/01/02 16:01:36 [error] 29002#0: *714153 connect() failed (111: Connection refused) while connecting to upstream, client: 172.16.3.32, server: bizorder.qianbao666.com, request: "POST /api/queryOrder/orderList HTTP/1.1", upstream: "http://172.16.3.32:9300/api/queryOrder/orderList", host: "bizorder.qianbao666.com"
nginx錯誤日志,實際現象為請求等待響應
經過分析原因是對應服務的tomcat內存設置過小,導致full gc,請求delay引起nginx請求認為超時
修復舉措:
1)修改nginx對應sever的請求failtimeout,失敗時間不宜過短
server 172.16.3.31:9300 max_fails=3 fail_timeout=40s;
2)增加tomcat內存,避免長時間出現full gc