JMeter httpclient.timeout property not working as expected
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 5
Description
**Madhuri Jain** ([Bug 65041](https://bz.apache.org/bugzilla//show_bug.cgi?id=65041&redirect=false)):
In continuation to working on this issue - JMeter test not stopping after duration ends in distribution mode (https://github.com/apache/jmeter/issues/5455)
Using JMeter version - 5.4
We got a thread dump and figured out few threads are getting stuck on HTTP Requests.
The resolution figured out is to set timeouts for the HTTP Requests.
But we're not the author of the test plan. Hence, the only way we could use is to set JMeter properties. We've set the following in jmeter.properties (values are for local testing):
httpclient.timeout=100
hc.parameters.file=hc.parameters
os_sampler.poll_for_timeout=100
and in hc.parameters
http.socket.timeout$Integer=100
But unfortunately none of these are working.
The only timeouts working are the ones when we set them in Advanced Tab of HTTP Sampler of the test plan.
Also, we do sometimes get this exception in response, but I highly doubt if this is related.
Non HTTP response code: java.net.BindException
Non HTTP response message: Address already in use: connect
Created attachment [jmeter.log](https://apache.github.io/jmeter-bugzilla-attachments/41/65041/37669/jmeter.log): JMeter Log
Severity: normal
OS: Linux
Contributor guide
Assessment
This issue has not been assessed yet.