简体   繁体   English

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

[英]Getting an error “Response code: Non HTTP response code: org.apache.http.conn.HttpHostConnectException” in jmeter

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 ie home page) where clk dashboard and clk landing page are repetitive action for 5 times. 我正在使用JMeter执行负载测试,用户可以在其中执行启动 - 登录 - clk仪表板页面 - clk登陆页面 (登录后的页面即主页)其中clk仪表板clk登陆页面是重复操作5倍。

Till 30 users I am not getting any error when i increased users load i am start getting an error as 直到30个用户我增加用户负载时没有收到任何错误我开始收到错误

Response code: Non HTTP response code: org.apache.http.conn.HttpHostConnectException Response message: Non HTTP response message: Connection to https://stage.ideas.com refused 响应代码:非HTTP响应代码:org.apache.http.conn.HttpHostConnectException响应消息:非HTTP响应消息:拒绝连接到https://stage.ideas.com

 Response headers: HTTPSampleResult fields: ContentType: DataEncoding: null 

in sample results. 在样本结果中。

Could any one suggest why I am getting this error ? 任何人都可以建议我为什么会收到这个错误? Sometimes it works for 100 users and sometimes I am getting an error. 有时它适用于100个用户,有时我会收到错误。

Thanks a lot in advance. 非常感谢提前。

You are getting connection refused, this means that JMeter is not able to connect to your server to perform the required test. 您正在拒绝连接,这意味着JMeter无法连接到您的服务器以执行所需的测试。

This can happen because : 这可能是因为:

  1. The server is not listening to the port anymore, like it crashed 服务器不再监听端口了,就像它崩溃一样
  2. The internet connection went down, on your side, server side, or in the middle 互联网连接断开,站在您的身边,服务器端或中间
  3. Some firewall or proxy or similar component between you and the server is denying connection 您和服务器之间的某些防火墙或代理或类似组件正在拒绝连接

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. 由于您正在运行测试,并从同一个ip生成大量连接到服务器,因此我首先检查数字3,这意味着由于过多的负载或安全原因,某些防火墙或代理会将您的活动限制在服务器上。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 org.apache.http.conn.HttpHostConnectException:拒绝连接到http:// localhost - org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused org.apache.http.conn.HttpHostConnectException:连接到127.0.0.1:7055 - org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:7055 错误:请求中的异常:org.apache.http.conn.HttpHostConnectException:与http:// ********:80的连接被拒绝 - ERROR:Exception in request: org.apache.http.conn.HttpHostConnectException: Connection to http://********:80 refused Android Studio错误org.apache.http.conn.HttpHostConnectException:拒绝与http://10.0.2.2:8080的连接 - Android Studio error org.apache.http.conn.HttpHostConnectException: Connection to http://10.0.2.2:8080 refused 从Eclipse访问URL时获取org.apache.http.conn.HttpHostConnectException - Getting org.apache.http.conn.HttpHostConnectException while accessing a URL from Eclipse 无法将图像从android上传到python Flask服务器,在android中显示错误org.apache.http.conn.HttpHostConnectException - unable to upload image from android to python flask server, show the error org.apache.http.conn.HttpHostConnectException in android org.apache.http.conn.HttpHostConnectException:连接到127.0.0.1:7055 [/127.0.0.1]失败:连接被拒绝:connect - org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:7055 [/127.0.0.1] failed: Connection refused: connect 线程“ main” org.apache.http.conn.HttpHostConnectException中的异常:连接到//失败:连接超时:connect - Exception in thread “main” org.apache.http.conn.HttpHostConnectException: Connect to // failed: Connection timed out: connect GitLab Runner 不一致:exec-maven-plugin:1.6.0:java org.apache.http.conn.HttpHostConnectException - GitLab Runner Inconsistency: exec-maven-plugin:1.6.0:java org.apache.http.conn.HttpHostConnectException Selenium 3.7:geckodriver:WebDriverException:org.apache.http.conn.HttpHostConnectException连接被拒绝 - Selenium 3.7 : geckodriver : WebDriverException: org.apache.http.conn.HttpHostConnectException Connection Refused
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM