Blazemeter / jmeter-http2-plugin

HTTP2 plugin for Apache JMeter
Apache License 2.0
46 stars 27 forks source link

Connection not reused #72

Open manuranga opened 5 months ago

manuranga commented 5 months ago
Screenshot 2024-06-28 at 6 31 59 PM

helloworld.zip

test-threads.jmx.zip

I am testing a simple HTTP service using the above JMeter script. I captured the traffic using Wireshark.

After upgrading to HTTP, the connection is used for only one HTTP 2 request.

1) I expected the plugin to reuse the same connection for multiple HTTP 2 requests. Could this be a bug or am I missing some configuration? I tried manually setting httpJettyClient.maxConcurrentAsyncInController=200 but it had no effect.

2) Not only it doesn't reuse the connection, it also holds the connection for 20 seconds without any traffic, consuming resources.

3) Additionally, is it possible to use HTTP 2 from the initial request (instead of upgrading), ie curl with --http2-prior-knowledge behaviour?

manuranga commented 5 months ago

I tried with httpclient.reset_state_on_thread_group_iteration=false, still no difference.