13

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
  • 1
    Did you solve it? If you have the answer would be appreciated. Commented Apr 7, 2020 at 19:37

1 Answer 1

16

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.

Sign up to request clarification or add additional context in comments.

3 Comments

Thanks Simone. some times working fine for even 100 users...but getting error randomly?
If it's because of some component "in the net", like the firewalls on your hosting company routers, then we can't predict the behaviour. Usually it's better to run jMeter tests on a controlled environment, that is on a known machine (a local computer for example) on a LAN, or on dedicated machines in a cloud, with one machine running the server and one running jmeter with provisioned thruput etc.. otherwise you're testing all the internet and not only your application.
I am running the test in controlled environment it self. in response data i am getting error as :"org.apache.http.conn.HttpHostConnectException: Connection to stage.ideas.com refused at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:190) at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)...." however my application is create database pool mechanism (not creating db connection on Demand)i.e.it creates 100 DB connection and using it from only.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.