且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

收到错误“响应代码:非 HTTP 响应代码:org.apache.http.conn.HttpHostConnectException"在 jmeter 中

更新时间:2022-03-25 21:38:50

连接被拒绝,这意味着 JMeter 无法连接到您的服务器以执行所需的测试.

You are getting connection refused, this means that JMeter is not able to connect to your server to perform the required test.

这可能是因为:

  1. 服务器不再监听端口,就像崩溃了一样
  2. 互联网连接中断,在您这边、服务器端或中间
  3. 您与服务器之间的某些防火墙或代理或类似组件正在拒绝连接

由于您正在运行测试,并从同一个 IP 产生大量连接到服务器,我会先检查数字 3,这意味着某些防火墙或代理出于过度负载或安全原因将您的活动限制在服务器上.

Since you're running tests, and spawning a lot of connections from the same ip to the server, I would check the number 3 first, meaning some firewall or proxy is limiting your activity to the server for excessive load or security reasons.