blue
blue

Reputation: 217

Does Apache JMeter support http/2 requests?

Does JMeter 3.2 support HTTP2 ?

Upvotes: 7

Views: 5988

Answers (3)

Naveen Kumar R B
Naveen Kumar R B

Reputation: 6398

From HTTPClient 4.5 official docs:

Standards based, pure Java, implementation of HTTP versions 1.0 and 1.1

SO, you need to wait till HTTP/2 is implemented in HTTPClient libraries and Jmeter implements HTTP2 using the library and create a sampler for the same.

Upvotes: 0

UBIK LOAD PACK
UBIK LOAD PACK

Reputation: 34566

HTTP2 is not supported by Core JMeter as of version 4.0

But there is a plugin that implements it.

This plugin can be installed by JMeter-Plugins Manager.

Regarding HTTP Client, since version 5.0 released on 18 January 2018, Http/2 is supported:

Upvotes: 3

Antony Hutchison
Antony Hutchison

Reputation: 3041

To sample HTTP/2 requests, you can use a plugin for jmeter, such as this one: https://github.com/syucream/jmeter-http2-plugin

From the readme file:

  • Build Netty 5 (Alpha3+) and netty-tcnative for your platform
  • Copy HTTP2Sampler.jar, netty-all.jar, netty-tcnative.jar and hpack.jar to lib/ext of jmeter directory

  • If you use gzip encoding, you must prepare jzlib.jar too.

  • Run JMeter

  • Write your test scenario with HTTP2Sampler

Upvotes: 2

Related Questions