2020
10-10
10-10
Spring Boot连接超时导致502错误的实战案例
1.问题描述内部系统之间通过Nginx来实现路由转发。但最近发现有一个系统,经常报502错误,每天达到上百次,完全无法忍受。2.原因排查于是进行排查,发现配置人员把连接超时时间(server.tomcat.connection-timeout)的单位,理解为秒,实际上是毫秒。SpringBoot的部分配置如下:#Tomcatserver:tomcat:uri-encoding:UTF-8max-threads:1000min-spare-threads:30connection-timeout:60#错误在这里port:18080servlet:co...
继续阅读 >