关于nginx upstream_response_time 超过 tomcat connectionTimeout的问题
PHP中文网
PHP中文网 2017-05-16 17:12:23
0
1
633

查看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学习者快速成长!