Does Apache JMeter support http/2 requests?

做~自己de王妃 提交于 2019-11-30 22:05:13

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.

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

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:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!