JMeter http2请求超时

时间:2019-06-04 12:14:55

标签: jmeter timeout http2

在JMeter中发送get http2请求时,我得到了java.util.concurrent.TimeoutException

我正在尝试在Webportal上测试http2,有些获取请求可以正常工作,但是有些不能,我得到java.util.concurrent.TimeoutException at java.base/java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1957) at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2092) at com.blazemeter.jmeter.http2.sampler.HTTP2Connection.awaitResponses(HTTP2Connection.java:179) at com.blazemeter.jmeter.http2.sampler.HTTP2Request.sample(HTTP2Request.java:211) at com.blazemeter.jmeter.http2.sampler.HTTP2Request.sample(HTTP2Request.java:139) at com.blazemeter.jmeter.http2.sampler.HTTP2Request.sample(HTTP2Request.java:115) at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:622) at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:546) at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:486) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:253) at java.base/java.lang.Thread.run(Thread.java:835)

我的配置是: java版本“ 12.0.1” 2019-04-16 JMeter 5.1.1 + HTTP / 2 Sampler插件版本:1.4

1 个答案:

答案 0 :(得分:0)

增加HTTP / 2采样器的超时,并检查其是否解决了问题。 enter image description here 如果工作减少,则放5秒,否则尝试将其增加5。

希望这会有所帮助。