Does Apache JMeter support http/2 requests?

。_饼干妹妹 提交于 2019-12-12 07:19:21

问题


Does JMeter 3.2 support HTTP2 ?


回答1:


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.




回答2:


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




回答3:


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


来源:https://stackoverflow.com/questions/42854214/does-apache-jmeter-support-http-2-requests

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