且构网

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

获取错误“响应代码:非HTTP响应代码:org.apache.http.conn.HttpHostConnectException”在jmeter中

更新时间:2022-03-25 21:39:02

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

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

之所以会发生,是因为:

This can happen because :


  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.