關於nginx upstream_response_time 超過 tomcat connectionTimeout的問題
PHP中文网
PHP中文网 2017-05-16 17:12:23
0
1
635

查看nginx日誌發現有些時候$upstream_response_time特別長,如179.839秒, 但對應的後端tomcat的配置的超時就是20秒啊那怎麼還有這麼長的upstream_response_time

$upstream_response_time

##keeps time spent on receiving the response from the upstream server; the time is kept in seconds with millisecond resolution.

#tomcat配置

<Connector port="XXX"
           address="XXX"
                   protocol="org.apache.coyote.http11.Http11NioProtocol"
           connectionTimeout="20000" # 超时时间20秒
           redirectPort="8443"
           maxThreads="500"
           minSpareThreads="20"
           acceptCount="1024000"
           disableUploadTimeout="true"
           enableLookups="false"
           URIEncoding="UTF-8" />

connectionTimeout

The number of milliseconds this Connector will wait, after accepting a connection, for the request URI line to be presented. Use a value of -1 to indicate no (i.e. infinite) timeout.

PHP中文网
PHP中文网

认证高级PHP讲师

全部回覆(1)
我想大声告诉你

nginx log裡面顯示的是毫秒,是不是你搞錯時間單位了?

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!