收到错误“响应代码:非 HTTP 响应代码:org.apache.http.conn.HttpHostConnectException"在 jmeter [英] Getting an error "Response code: Non HTTP response code: org.apache.http.conn.HttpHostConnectException" in jmeter

查看:82
本文介绍了收到错误“响应代码:非 HTTP 响应代码:org.apache.http.conn.HttpHostConnectException"在 jmeter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 JMeter 执行负载测试,用户应该在其中执行启动--登录--clk 仪表板页面--clk登陆页面(登录后出现的页面,即主页),其中clk仪表板clk登陆页面是重复动作5次.

I am executing load test using JMeter where users are suppose to do Launch--Login--clk dashboard Page--clk landing page (the page which come after login i.e. home page) where clk dashboard and clk landing page are repetitive action for 5 times.

直到 30 个用户,当我增加用户负载时,我没有收到任何错误,我开始收到错误消息

Till 30 users I am not getting any error when i increased users load i am start getting an error as

响应代码:非 HTTP 响应代码:org.apache.http.conn.HttpHostConnectException响应消息:非 HTTP 响应消息:连接到 https://stage.ideas.com 被拒绝

Response code: Non HTTP response code: org.apache.http.conn.HttpHostConnectException Response message: Non HTTP response message: Connection to https://stage.ideas.com refused

Response headers:


HTTPSampleResult fields:
ContentType: 
DataEncoding: null

在样本结果中.

谁能建议我为什么会收到此错误?有时它适用于 100 个用户,有时我收到错误.

Could any one suggest why I am getting this error ? Sometimes it works for 100 users and sometimes I am getting an error.

非常感谢.

推荐答案

您的连接被拒绝,这意味着 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.

这篇关于收到错误“响应代码:非 HTTP 响应代码:org.apache.http.conn.HttpHostConnectException"在 jmeter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆