被测试HTTP服务在容器中运行,使用的是gunicorn,在另外一台server通过python requests做压力测试。

出现:urllib3.connectionpool Connection pool is full

requests使用了urlib3,urllib3中有PoolManager,它会复用连接,所以如果压测过程中,大量发起requests,会导致Pool Manager中的connection pool满掉,进而出现这个问题。

  • G    2022-11-30 13:56:04
  • 阅读 1149    收藏 0    回答 1
  • 邀请
  • 收藏
  • 分享
发送
登录 后发表评论
  • 51testing软件测试圈微信