Bug 65041 - JMeter httpclient.timeout property not working as expected
Summary: JMeter httpclient.timeout property not working as expected
Status: NEW
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 5.4
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: JMETER 5.4.1
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-30 06:22 UTC by Madhuri Jain
Modified: 2021-12-28 09:46 UTC (History)
1 user (show)



Attachments
JMeter Log (62.64 KB, text/plain)
2020-12-30 06:22 UTC, Madhuri Jain
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Madhuri Jain 2020-12-30 06:22:25 UTC
Created attachment 37669 [details]
JMeter Log

In continuation to working on this issue - JMeter test not stopping after duration ends in distribution mode (https://bz.apache.org/bugzilla/show_bug.cgi?id=65000)

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
Comment 1 Madhuri Jain 2021-01-05 13:24:11 UTC
Submitted a PR - https://github.com/apache/jmeter/pull/640
Comment 2 Vladimir Sitnikov 2021-12-28 09:46:10 UTC
Madhuri Jain, do you think you could still share the thread dumps in question?
Comment 3 The ASF infrastructure team 2022-09-24 20:38:21 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/5478