qq_43073903
懒汉上树
2021-01-23 16:48

JMeter 中在后端监视器配置后在虚拟机的influx 中查询不到传入的参数

  • 问答团队
  • java

JMeter 配置如下:

 

查询不到对应的数据   报错信息如下 :(应该是我的服务器地址写错了吧?  大神们求教一下)

2021-01-23 16:41:20,100 INFO o.a.j.e.StandardJMeterEngine: Running the test!
2021-01-23 16:41:20,100 INFO o.a.j.s.SampleEvent: List of sample_variables: []
2021-01-23 16:41:20,101 INFO o.a.j.v.b.BackendListener: Backend Listener: Starting worker with class: class org.apache.jmeter.visualizers.backend.influxdb.InfluxdbBackendListenerClient and queue capacity: 5000
2021-01-23 16:41:20,101 INFO o.a.j.v.b.BackendListener: Backend Listener: Started  worker with class: class org.apache.jmeter.visualizers.backend.influxdb.InfluxdbBackendListenerClient
2021-01-23 16:41:20,104 INFO o.a.j.g.u.JMeterMenuBar: setRunning(true, *local*)
2021-01-23 16:41:20,200 INFO o.a.j.e.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group
2021-01-23 16:41:20,200 INFO o.a.j.e.StandardJMeterEngine: Starting 1 threads for group Thread Group.
2021-01-23 16:41:20,200 INFO o.a.j.e.StandardJMeterEngine: Thread will continue on error
2021-01-23 16:41:20,200 INFO o.a.j.t.ThreadGroup: Starting thread group... number=1 threads=1 ramp-up=1 delayedStart=false
2021-01-23 16:41:20,201 INFO o.a.j.t.ThreadGroup: Started thread group number 1
2021-01-23 16:41:20,201 INFO o.a.j.e.StandardJMeterEngine: All thread groups have been started
2021-01-23 16:41:20,202 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-1
2021-01-23 16:41:20,202 INFO o.a.j.s.FileServer: Stored: D:/Test_Project/iJmeter-master-test/jmx/users.csv
2021-01-23 16:41:22,203 ERROR o.a.j.v.b.i.HttpMetricsSender: failed to send data to influxDB server.
java.net.ConnectException: Timeout connecting to [localhost/127.0.0.1:8086]
	at org.apache.http.nio.pool.RouteSpecificPool.timeout(RouteSpecificPool.java:169) [httpcore-nio-4.4.13.jar:4.4.13]
	at org.apache.http.nio.pool.AbstractNIOConnPool.requestTimeout(AbstractNIOConnPool.java:632) [httpcore-nio-4.4.13.jar:4.4.13]
	at org.apache.http.nio.pool.AbstractNIOConnPool$InternalSessionRequestCallback.timeout(AbstractNIOConnPool.java:898) [httpcore-nio-4.4.13.jar:4.4.13]
	at org.apache.http.impl.nio.reactor.SessionRequestImpl.timeout(SessionRequestImpl.java:198) [httpcore-nio-4.4.13.jar:4.4.13]
	at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processTimeouts(DefaultConnectingIOReactor.java:213) [httpcore-nio-4.4.13.jar:4.4.13]
	at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:158) [httpcore-nio-4.4.13.jar:4.4.13]
	at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:351) [httpcore-nio-4.4.13.jar:4.4.13]
	at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:221) [httpasyncclient-4.1.4.jar:4.1.4]
	at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64) [httpasyncclient-4.1.4.jar:4.1.4]
	at java.lang.Thread.run(Unknown Source) [?:1.8.0_271]
2021-01-23 16:41:22,620 INFO o.a.j.t.JMeterThread: Thread is done: Thread Group 1-1
2021-01-23 16:41:22,621 INFO o.a.j.t.JMeterThread: Thread finished: Thread Group 1-1
2021-01-23 16:41:22,621 INFO o.a.j.e.StandardJMeterEngine: Notifying test listeners of end of test
2021-01-23 16:41:22,621 INFO o.a.j.s.FileServer: Close: D:/Test_Project/iJmeter-master-test/jmx/users.csv
2021-01-23 16:41:22,621 INFO o.a.j.v.b.BackendListener: Worker ended
2021-01-23 16:41:22,622 INFO o.a.j.v.b.i.InfluxdbBackendListenerClient: Sending last metrics to InfluxDB
2021-01-23 16:41:22,623 INFO o.a.j.v.b.i.HttpMetricsSender: Destroying 
2021-01-23 16:41:23,625 ERROR o.a.j.v.b.i.HttpMetricsSender: failed to send data to influxDB server.
java.net.ConnectException: Timeout connecting to [localhost/127.0.0.1:8086]
	at org.apache.http.nio.pool.RouteSpecificPool.timeout(RouteSpecificPool.java:169) [httpcore-nio-4.4.13.jar:4.4.13]
	at org.apache.http.nio.pool.AbstractNIOConnPool.requestTimeout(AbstractNIOConnPool.java:632) [httpcore-nio-4.4.13.jar:4.4.13]
	at org.apache.http.nio.pool.AbstractNIOConnPool$InternalSessionRequestCallback.timeout(AbstractNIOConnPool.java:898) [httpcore-nio-4.4.13.jar:4.4.13]
	at org.apache.http.impl.nio.reactor.SessionRequestImpl.timeout(SessionRequestImpl.java:198) [httpcore-nio-4.4.13.jar:4.4.13]
	at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processTimeouts(DefaultConnectingIOReactor.java:213) [httpcore-nio-4.4.13.jar:4.4.13]
	at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:158) [httpcore-nio-4.4.13.jar:4.4.13]
	at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:351) [httpcore-nio-4.4.13.jar:4.4.13]
	at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:221) [httpasyncclient-4.1.4.jar:4.1.4]
	at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64) [httpasyncclient-4.1.4.jar:4.1.4]
	at java.lang.Thread.run(Unknown Source) [?:1.8.0_271]
2021-01-23 16:41:23,625 ERROR o.a.j.v.b.i.HttpMetricsSender: Error waiting for last request to be send to InfluxDB
java.util.concurrent.ExecutionException: java.net.ConnectException: Timeout connecting to [localhost/127.0.0.1:8086]
	at org.apache.http.concurrent.BasicFuture.getResult(BasicFuture.java:71) ~[httpcore-4.4.13.jar:4.4.13]
	at org.apache.http.concurrent.BasicFuture.get(BasicFuture.java:102) ~[httpcore-4.4.13.jar:4.4.13]
	at org.apache.http.impl.nio.client.FutureWrapper.get(FutureWrapper.java:75) ~[httpasyncclient-4.1.4.jar:4.1.4]
	at org.apache.jmeter.visualizers.backend.influxdb.HttpMetricsSender.destroy(HttpMetricsSender.java:252) [ApacheJMeter_components.jar:5.4]
	at org.apache.jmeter.visualizers.backend.influxdb.InfluxdbBackendListenerClient.teardownTest(InfluxdbBackendListenerClient.java:420) [ApacheJMeter_components.jar:5.4]
	at org.apache.jmeter.visualizers.backend.BackendListener.testEnded(BackendListener.java:375) [ApacheJMeter_components.jar:5.4]
	at org.apache.jmeter.visualizers.backend.BackendListener.testEnded(BackendListener.java:383) [ApacheJMeter_components.jar:5.4]
	at org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfEnd(StandardJMeterEngine.java:218) [ApacheJMeter_core.jar:5.4]
	at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:493) [ApacheJMeter_core.jar:5.4]
	at java.lang.Thread.run(Unknown Source) [?:1.8.0_271]
Caused by: java.net.ConnectException: Timeout connecting to [localhost/127.0.0.1:8086]
	at org.apache.http.nio.pool.RouteSpecificPool.timeout(RouteSpecificPool.java:169) ~[httpcore-nio-4.4.13.jar:4.4.13]
	at org.apache.http.nio.pool.AbstractNIOConnPool.requestTimeout(AbstractNIOConnPool.java:632) ~[httpcore-nio-4.4.13.jar:4.4.13]
	at org.apache.http.nio.pool.AbstractNIOConnPool$InternalSessionRequestCallback.timeout(AbstractNIOConnPool.java:898) ~[httpcore-nio-4.4.13.jar:4.4.13]
	at org.apache.http.impl.nio.reactor.SessionRequestImpl.timeout(SessionRequestImpl.java:198) ~[httpcore-nio-4.4.13.jar:4.4.13]
	at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processTimeouts(DefaultConnectingIOReactor.java:213) ~[httpcore-nio-4.4.13.jar:4.4.13]
	at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:158) ~[httpcore-nio-4.4.13.jar:4.4.13]
	at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:351) ~[httpcore-nio-4.4.13.jar:4.4.13]
	at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:221) ~[httpasyncclient-4.1.4.jar:4.1.4]
	at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64) ~[httpasyncclient-4.1.4.jar:4.1.4]
	... 1 more
2021-01-23 16:41:23,627 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, *local*)

 

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

0条回答