Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HttpClient4 don't reuse TCP connections #4355

Closed
asfimport opened this issue Apr 6, 2017 · 2 comments
Closed

HttpClient4 don't reuse TCP connections #4355

asfimport opened this issue Apr 6, 2017 · 2 comments

Comments

@asfimport
Copy link
Collaborator

Maxime Bossard (Bug 60957):
The current implementation of HttpClient4 don't reuse HTTP connections, dispite the "Use Keepalive" checked, the headers are present in the request and in the response.
TCP connections are not closed ether, they quickly move to state TIME-WAIT.

With the same test plan, HttpClient3.1 correctly reuse TCP connections.

Severity: major
OS: Linux

Duplicated by:

@asfimport
Copy link
Collaborator Author

@pmouawad (migrated from Bugzilla):
Hello,
Can you test JMeter nightly build ?
http://jmeter.apache.org/nightly.html

This is not a bug but a configuration you have to do on these properties:
httpclient4.idletimeout=0
httpclient4.validate_after_inactivity=1700
httpclient4.time_to_live=2000

Read :
http://jmeter.apache.org/usermanual/properties_reference.html

Default values have been improved in 3.2

This bug has been marked as a duplicate of #4266

@asfimport
Copy link
Collaborator Author

Maxime Bossard (migrated from Bugzilla):
(In reply to Philippe Mouawad from comment 1)

Hello,
Can you test JMeter nightly build ?
http://jmeter.apache.org/nightly.html

This is not a bug but a configuration you have to do on these properties:
httpclient4.idletimeout=0
httpclient4.validate_after_inactivity=1700
httpclient4.time_to_live=2000

Read :
http://jmeter.apache.org/usermanual/properties_reference.html

Default values have been improved in 3.2

*** This bug has been marked as a duplicate of #4266 ***

Yup, it works with httpclient4.time_to_live greater than the value returned by the server.

I didn't test the nightly build, but I can't see a difference for this property in the 3.2RC2 version of jmeter.properties
cf: https://github.com/apache/jmeter/blob/v3_2_RC2/bin/jmeter.properties

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant