Zuul1的版本是1.3.1
我使用jmeter通过zuul测试一个服务,我设置线程数为1000,循环数为无穷。过了一段时间,zuul的断路器打开了,但它再也不能使用了。我发现,原因是底层httpclient的租用连接充满了连接池,但正常情况下,它们应该在超时后释放。我想知道为什么租用的连接不能释放?
我的zuul1的配置是:
ribbon:
ReadTimeout: 2000
ConnectTimeout: 1000
MaxTotalConnections: 200
MaxConnectionsPerHost: 50
zuul:
ribbonIsolationStrategy: THREAD
hystrix:
command:
default:
execution:
timeout:
enabled: true
isolation:
thread:
timeoutInMilliseconds: 8000

发布于 2020-08-27 16:54:59
我得到了答案:https://github.com/spring-cloud/spring-cloud-netflix/issues/2831
这是zuul的一个bug。
https://stackoverflow.com/questions/63594848
复制相似问题