JMeter 测试执行中的连接超时错误 [英] Connection timed out error in JMeter test execution

查看:149
本文介绍了JMeter 测试执行中的连接超时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用 GUI 运行我的 JMeter 脚本 时,有时会出现连接超时 错误 并且没有得到响应,但是如果我在几分钟后运行相同的测试,我会得到相同样本的响应.

When am running my JMeter scripts using GUI for few of the samples sometimes am getting Connection timed out error and response are not getting, but if I run the same test after few mins I got the response for the same samples.

有人可以回答这个问题的解决方案是什么吗?

Can anybody please answer what is the solution for this?

目前正在检查每个页面的响应时间,如果添加定时器页面响应时间会显示更多对吗?

Currently am checking the response time of each page, if add timers than the page response time will be showing more right?

推荐答案

至少有3种可能的原因:

There are at least 3 possibles reasons:

  • 您的服务器(即处理请求的 Web 服务器及其后的任何组件)未正确处理负载并减慢速度,请监控系统并检查

  • Your server (meaning web servers handling request and any components after them) is not handling the load correctly and slowing down, monitor the system and check

您的注入器临时端口已用尽,您需要调整您的操作系统 TCP 设置以增加端口范围

You have exhausted your injector ephemeral ports , you need to adjust your OS TCP settings to increase port range

您正在 GUI 模式下运行负载测试,并在测试中使用查看结果树,这是不好的做法,因为 GC 会经常发生,可能会触发 Stop The World 导致这种情况.根据最佳实践使用非 GUI 模式:

You're running load test in GUI mode with a View Results Tree in test, this is bad practice as GC will happen frequently possibly triggering Stop The World leading to this. As per best-practices use NON GUI mode:

这篇关于JMeter 测试执行中的连接超时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆