【问题标题】:getting java.util.concurrent.ExecutionException: java.lang.IllegalStateException: No Client ALPNProcessors! for jmeter获取 java.util.concurrent.ExecutionException: java.lang.IllegalStateException: No Client ALPNProcessors!对于 jmeter
【发布时间】:2020-04-23 14:31:14
【问题描述】:

我使用的是 jmeter 5.2.1,并且我已经下载了兼容版本的 ALPN 引导并使用 http2 查看结果侦听器。但仍然低于错误。有人可以帮忙吗?

java.util.concurrent.ExecutionException: java.lang.IllegalStateException: No Client ALPNProcessors!
    at org.eclipse.jetty.util.FuturePromise.get(FuturePromise.java:138)
    at com.blazemeter.jmeter.http2.sampler.HTTP2Connection.connect(HTTP2Connection.java:69)
    at com.blazemeter.jmeter.http2.sampler.HTTP2Request.setConnection(HTTP2Request.java:280)
    at com.blazemeter.jmeter.http2.sampler.HTTP2Request.sample(HTTP2Request.java:140)
    at com.blazemeter.jmeter.http2.sampler.HTTP2Request.sample(HTTP2Request.java:117)
    at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:627)
    at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:551)
    at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:490)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257)
    at java.lang.Thread.run(Unknown Source)

【问题讨论】:

    标签: jmeter alpn


    【解决方案1】:

    很可能你错过了important bit of the HTTP2 Plugin installation instructions

    2- 在 Windows 上,在 jmeter.bat 的开头添加下一行:set JVM_ARGS= -Xbootclasspath/p:<path.to.jar>;

    在 Linux 和 Mac 上,在 jmeter.sh 的开头添加下一行(请参阅底部的 Notes JMeter for macOS 部分):JVM_ARGS="-Xbootclasspath/p:<path.to.jar>"\

    3- 重启 JMeter

    例如,我的 Java 版本是 1.8.0_202,因此我需要 alpn-boot-8.1.13.v20181017.jar,而我的 jmeter.bat 文件的前 3 行如下所示:

    @echo off
    set JVM_ARGS= -Xbootclasspath/p:c:\apps\jmeter\lib\alpn-boot-8.1.13.v20181017.jar
    rem   Licensed to the Apache Software Foundation (ASF) under one or more
    

    并且 HTTP2 插件功能齐全:

    您可能还对 HTTP/2 - How to get ready for the future 文章感兴趣,该文章重点介绍了 HTTP2 协议的主要特性,在进行性能测试时您应该了解这些特性。

    【讨论】:

    • 嗨 Dmitri,我添加了 JVM_ARGS= -Xbootclasspath/p:;在我的 jmeter 文件中。我是否需要添加“set VM_ARGS= -Xbootclasspath/p:;”或者只是“JVM_ARGS= -Xbootclasspath/p:;”
    • ## JVM_ARGS="-Xms1g -Xmx1g" jmeter 等 JVM_ARGS="-Xbootclasspath/p:C:\Users\469956\Desktop\apache-jmeter-5.2.1\apache-jmeter- 5.2.1\lib\alpn-boot-8.1.13.v20181017.jar;"
    • 但是,我没有看到您在 jmeter.bat cmd 行中看到的 3 行
    • 我现在收到此错误。 ava.util.concurrent.TimeoutException 在 com.blazemeter.jmeter.http2.sampler.HTTP2Connection.connect(HTTP2Connection.java:69) 在 org.eclipse.jetty.util.FuturePromise.get(FuturePromise.java:130) 在 com。 blazemeter.jmeter.http2.sampler.HTTP2Request.setConnection(HTTP2Request.java:280) 在 com.blazemeter.jmeter.http2.sampler.HTTP2Request.sample(HTTP2Request.java:140) 在 com.blazemeter.jmeter.http2.sampler。 HTTP2Request.sample(HTTP2Request.java:117) at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:627)
    猜你喜欢
    • 2018-12-27
    • 2020-05-21
    • 2016-05-08
    • 2019-07-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-07
    • 2017-07-13
    相关资源
    最近更新 更多