为了账号安全,请及时绑定邮箱和手机立即绑定

jmeter 请求报错~HttpHostConnectException

取样器结果:

Thread Name: 线程组 1-1

Sample Start: 2019-06-25 17:09:18 CST

Load time: 1

Connect Time: 1

Latency: 0

Size in bytes: 2743

Sent bytes:0

Headers size in bytes: 0

Body size in bytes: 2743

Sample Count: 1

Error Count: 1

Data type ("text"|"bin"|""): text

Response code: Non HTTP response code: org.apache.http.conn.HttpHostConnectException

Response message: Non HTTP response message: Connect to localhost:8088 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

请求:

Request Body:

GET http://www.weather.com.cn/data/sk/101010100.html

GET data:

[no cookies]

Request Headers:

Connection: keep-alive

Host: www.weather.com.cn

Proxy-Connection: Keep-Alive

User-Agent: Apache-HttpClient/4.5.7 (Java/12.0.1)

响应数据:

org.apache.http.conn.HttpHostConnectException: Connect to localhost:8088 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:156)

at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl$JMeterDefaultHttpClientConnectionOperator.connect(HTTPHC4Impl.java:336)

at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:374)

at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:401)

at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)

at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)

at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)

at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)

at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)

at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:843)

at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:574)

at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:67)

at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1231)

at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1220)

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)

Caused by: java.net.ConnectException: Connection refused (Connection refused)

at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)

at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)

at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)

at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)

at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)

at java.base/java.net.Socket.connect(Socket.java:591)

at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:75)

at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)

... 19 more

请问是什么问题?

正在回答

1 回答

服务器名称或IP配置不正确

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

jmeter 请求报错~HttpHostConnectException

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信