'Jmeter I keep getting: 'java.net.ConnectException: Connection timed out: connect'?

Jmeter I keep getting: 'java.net.ConnectException: Connection timed out: connect' ?

  1. I have created a load test which tests a specific url at 200 users
  2. when running the load test for x1 iteration i keep seem to be getting: Connection timed outs?
  3. I have made the following changes listed here: https://msdn.microsoft.com/en-us/library/aa560610(v=bts.20).aspx

But the issue is still there: [enter image description here1

enter image description here



Solution 1:[1]

You most probably don't have access to the target host from where you test.

Did you configure proxy as your web browser is probably configured

But if failure is partial, then you server might be overloaded and rejecting some requests.

Solution 2:[2]

My expectation is that "problematic" requests are simply not able to finish in 20 seconds (most probably you have modified Connect timeout and set this value in HTTP Request or HTTP Request Defaults)

20 seconds looks like a long response time to me so your finding indicates application under test performance problem.

Going forward if you would like to see more "human readable" message in the results file switch to Duration Assertion instead of setting timeouts on protocol level

JMeter Duration Assertion

See How to Use JMeter Assertions in Three Easy Steps article for more information on conditionally failing JMeter requests.

Solution 3:[3]

Please check client configuration from where you are running your tests. It might be like your client system is not able to handle 200 threads. Do the test iteration wise means try with 10, 50 , 70 and so on. Check from which iteration onwards you are getting the error. It is also advisable not to include the listeners during load testing.

Please check the best practices for load testing using jmeter.
http://jmeter.apache.org/usermanual/best-practices.html

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Dmitri T
Solution 3 bsd007