【问题标题】:Zuul1 can't release the underlying httpclient's connection pool in pressure testZuul1压测无法释放底层httpclient的连接池
【发布时间】: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


    【解决方案1】:

    【讨论】:

      猜你喜欢
      • 2016-05-31
      • 2014-08-06
      • 2013-05-01
      • 2016-10-24
      • 2012-04-22
      • 1970-01-01
      • 2015-12-04
      • 1970-01-01
      • 2017-05-26
      相关资源
      最近更新 更多