1. 程式人生 > >016_nginx運維問題總結

016_nginx運維問題總結

gre mes 分析 str 抓包 navig rem close netstat

一、關於nginx請求包過大的解決思路

message-api.jyall.me.conf
nginx報錯問題問題定位,經分析跟接入navigator後關聯不大,可參考一下結論連接超時抓包分析了一下每次請求過來的數據過大,需要在location增加以下參數upstream timed out (110: Connection timed out)
proxy_connect_timeout
proxy_read_timeout
proxy_send_timeout
upstream請求連接方式,目前是短連接可配置keepalive保持連接資源復用增加keepalive 參數對比
[[email protected] ~]# netstat -na |grep :8856 | wc -l
7547
增加keepalive後
[[email protected] ~]# netstat -na |grep :8856 | wc -l
767
過早斷開連接這個問題,跟業務場景有關系,如果對業務沒有影響可忽略upstream prematurely closed connection

二、

016_nginx運維問題總結