JMeter httpclient.timeout 属性 不工作
JMeter httpclient.timeout property not working
继续解决这个问题 -
使用 JMeter 版本 - 5.4
我得到了线程转储,发现很少有线程卡在 HTTP 请求上。
找到的解决方案是为此处提到的 HTTP 请求设置超时 - Configuring response timeout in Apache JMeter
但我不是测试计划的作者。因此,我可以使用的唯一方法是设置 JMeter 属性。
我在 jmeter.properties 中设置了以下内容(值用于本地测试):
httpclient.timeout=100
hc.parameters.file=hc.parameters
os_sampler.poll_for_timeout=100
并在 hc.parameters
http.socket.timeout$Integer=100
但不幸的是,其中 none 个正在运行。
唯一有效的超时是我在测试计划的 HTTP 采样器的高级选项卡中设置的超时。
我们是否有任何平台建议来控制此行为(如其他设置或 属性 等)?或者我是否遗漏了上述属性中的任何内容?
此外,我有时会收到此异常响应,但我非常怀疑这是否相关?
Non HTTP response code: java.net.BindException
Non HTTP response message: Address already in use: connect
你的步骤是正确的所以它看起来像是 JMeter 中的一个错误,可能是 this commit 的副作用所以你有 2 个选择:
- 降级到 JMeter 5.0,此功能仍然有效
- Raise an issue in JMeter Bugzilla 但您需要等到有人修复它,然后再进行夜间构建或包含此修复的新版本
- Fix it yourself and contribute the fix to the upstream
继续解决这个问题 -
使用 JMeter 版本 - 5.4
我得到了线程转储,发现很少有线程卡在 HTTP 请求上。
找到的解决方案是为此处提到的 HTTP 请求设置超时 - Configuring response timeout in Apache JMeter
但我不是测试计划的作者。因此,我可以使用的唯一方法是设置 JMeter 属性。 我在 jmeter.properties 中设置了以下内容(值用于本地测试):
httpclient.timeout=100
hc.parameters.file=hc.parameters
os_sampler.poll_for_timeout=100
并在 hc.parameters
http.socket.timeout$Integer=100
但不幸的是,其中 none 个正在运行。
唯一有效的超时是我在测试计划的 HTTP 采样器的高级选项卡中设置的超时。
我们是否有任何平台建议来控制此行为(如其他设置或 属性 等)?或者我是否遗漏了上述属性中的任何内容?
此外,我有时会收到此异常响应,但我非常怀疑这是否相关?
Non HTTP response code: java.net.BindException
Non HTTP response message: Address already in use: connect
你的步骤是正确的所以它看起来像是 JMeter 中的一个错误,可能是 this commit 的副作用所以你有 2 个选择:
- 降级到 JMeter 5.0,此功能仍然有效
- Raise an issue in JMeter Bugzilla 但您需要等到有人修复它,然后再进行夜间构建或包含此修复的新版本
- Fix it yourself and contribute the fix to the upstream