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

天大地大妈咪最大 提交于 2020-06-24 21:50:09

问题


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.

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

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

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.

Thanks a lot in advance.


回答1:


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. 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.



来源:https://stackoverflow.com/questions/25664979/getting-an-error-response-code-non-http-response-code-org-apache-http-conn-ht

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!