Jmeter 我不断收到:'java.net.ConnectException:连接超时:连接'?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/45671822/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Jmeter I keep getting: 'java.net.ConnectException: Connection timed out: connect'?
提问by xGIx
Jmeter I keep getting: 'java.net.ConnectException: Connection timed out: connect' ?
Jmeter 我不断收到:'java.net.ConnectException:连接超时:连接'?
- I have created a load test which tests a specific url at 200 users
- when running the load test for x1 iteration i keep seem to be getting: Connection timed outs?
- I have made the following changes listed here: https://msdn.microsoft.com/en-us/library/aa560610(v=bts.20).aspx
- 我创建了一个负载测试来测试 200 个用户的特定 url
- 在运行 x1 迭代的负载测试时,我似乎一直在得到:连接超时?
- 我进行了以下列出的更改:https: //msdn.microsoft.com/en-us/library/aa560610(v=bts.20).aspx
But the issue is still there:
[1
但问题仍然存在:[ 1
回答by UBIK LOAD PACK
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.
但是如果失败是部分的,那么您的服务器可能会过载并拒绝某些请求。
回答by Dmitri T
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 Requestor HTTP Request Defaults)
我的期望是“有问题”的请求根本无法在 20 秒内完成(很可能您已经修改了连接超时并在HTTP 请求或HTTP 请求默认值中设置了此值)
20 seconds looks like a long response time to me so your finding indicates application under test performance problem.
20 秒对我来说似乎是一个很长的响应时间,因此您的发现表明被测应用程序存在性能问题。
Going forward if you would like to see more "human readable" message in the results file switch to Duration Assertioninstead of setting timeouts on protocol level
继续前进,如果您想在结果文件中看到更多“人类可读”的消息,请切换到Duration Assertion而不是在协议级别设置超时
See How to Use JMeter Assertions in Three Easy Stepsarticle for more information on conditionally failing JMeter requests.
有关条件性失败的 JMeter 请求的更多信息,请参阅如何在三个简单步骤中使用 JMeter 断言一文。
回答by bsd007
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.
请从您运行测试的位置检查客户端配置。您的客户端系统可能无法处理 200 个线程。明智地进行测试迭代意味着尝试 10、50、70 等。检查从哪个迭代开始您收到错误。还建议在负载测试期间不要包含侦听器。
Please check the best practices for load testing using jmeter.
http://jmeter.apache.org/usermanual/best-practices.html
请检查使用 jmeter 进行负载测试的最佳实践。
http://jmeter.apache.org/usermanual/best-practices.html