【发布时间】:2020-12-15 02:08:53
【问题描述】:
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
【问题讨论】:
标签: spring-cloud apache-httpclient-4.x netflix-zuul hystrix