Getting an error “Response code: Non HTTP response

2020-07-03 07:53发布

问题:

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.