Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Apache JMeter support http/2 requests?

Does JMeter 3.2 support HTTP2 ?

like image 667
blue Avatar asked Mar 17 '17 09:03

blue


People also ask

Does JMeter support HTTP protocol?

JMeter can load and performance test many different server types: Web - HTTP, HTTPS, SOAP, Database via JDBC, LDAP, JMS, Mail - POP3. It is platform-independent tool.

How would you go about testing a website that uses HTTP 2 on JMeter?

From the JMeter plugins manager, search for the HTTP/2 plugin, select HTTP/2 Sampler from the list and click on the Apply Changes and Restart JMeter. You will now have the HTTP/2 Sampler available to be included in your script.


2 Answers

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

like image 140
antonyh Avatar answered Oct 03 '22 10:10

antonyh


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:

  • https://hc.apache.org/httpcomponents-client-5.0.x/index.html
  • http://mail-archives.apache.org/mod_mbox/hc-httpclient-users/201801.mbox/%3C1516280327.10018.3.camel%40apache.org%3E
like image 35
UBIK LOAD PACK Avatar answered Oct 03 '22 08:10

UBIK LOAD PACK