JMeter异常

JMeter异常,jmeter,Jmeter,我在运行JMeter负载测试时遇到以下异常: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 502 Tunnel Connection Failed" at sun.net.www.protocol.http.HttpURLConnection.doTunneling(Unknown Source) at sun.net.www.protocol.https.AbstractDelegat

我在运行JMeter负载测试时遇到以下异常:

java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 502 Tunnel Connection Failed"
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
at org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.sample(HTTPJavaImpl.java:487)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1105)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1094)
at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:429)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257)
at java.lang.Thread.run(Unknown Source)
------------------------------------------------------------------------
正如输出所示:

无法通过代理进行隧道传输。代理返回HTTP/1.1 502隧道连接失败

JMeter试图通过代理访问目标服务器,但由于某种原因连接失败


您需要使用代理吗?如果这样做,请确保代理配置正确,并且目标服务器的IP/端口正确。

我认为不允许直接连接到目标服务器。你可以用油灰建一条隧道。 然后连接到putty tunnel中创建的localhost和localport,只需添加到线程组,然后将代理详细信息服务器名称或IP、端口号、用户名和密码如下:

这似乎不是很多信息。关于你的设置还有什么可以补充的吗?我想这是离题了。