问题
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 :
- The server is not listening to the port anymore, like it crashed
- The internet connection went down, on your side, server side, or in the middle
- 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