nginx connect() failed (111: Connection refused) while connecting to upstream,請求無響應錯誤


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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM