使用JMeter引发异常加载测试RabbitMQ:发生意外的连接驱动程序错误(异常消息:套接字已关闭)

时间:2019-03-07 20:08:53

标签: jmeter rabbitmq load-testing

我从这里关注RabbitMQ负载测试设置 https://stackoverflow.com/a/37828239/10088932

我从这里https://github.com/jatinaneja/jmeter_amqp/blob/master/JMeterAMQP.jar

下载了Jar文件

运行负载测试时,我在JMeter中收到以下错误消息

2019-03-07 19:55:27,808 INFO c.z.j.p.a.g.AMQPSamplerGui: AMQPSamplerGui.modifyTestElement() called, set user/pass to guest/guest on sampler com.zeroclue.jmeter.protocol.amqp.AMQPPublisher@aa4ef49
2019-03-07 19:55:27,808 INFO c.z.j.p.a.g.AMQPSamplerGui: AMQPSamplerGui.configure() called
2019-03-07 19:55:27,808 INFO o.a.j.e.StandardJMeterEngine: Running the test!
2019-03-07 19:55:27,808 INFO o.a.j.s.SampleEvent: List of sample_variables: []
2019-03-07 19:55:27,809 INFO o.a.j.g.u.JMeterMenuBar: setRunning(true, *local*)
2019-03-07 19:55:27,864 INFO o.a.j.e.StandardJMeterEngine: Starting ThreadGroup: 1 : RabbitMQ Group
2019-03-07 19:55:27,864 INFO o.a.j.e.StandardJMeterEngine: Starting 1 threads for group RabbitMQ Group.
2019-03-07 19:55:27,864 INFO o.a.j.e.StandardJMeterEngine: Thread will continue on error
2019-03-07 19:55:27,864 INFO o.a.j.t.ThreadGroup: Starting thread group... number=1 threads=1 ramp-up=1 perThread=1000.0 delayedStart=false
2019-03-07 19:55:27,864 INFO o.a.j.t.ThreadGroup: Started thread group number 1
2019-03-07 19:55:27,864 INFO o.a.j.e.StandardJMeterEngine: All thread groups have been started
2019-03-07 19:55:27,865 INFO o.a.j.t.JMeterThread: Thread started: RabbitMQ Group 1-1
2019-03-07 19:55:27,865 INFO c.z.j.p.a.AMQPSampler: Creating channel /:15672
2019-03-07 19:55:27,865 INFO c.z.j.p.a.AMQPSampler: RabbitMQ ConnectionFactory using:
     virtual host: /
     host: localhost
     port: 15672
     username: guest
     password: guest
     timeout: 10000
     heartbeat: 1
in com.zeroclue.jmeter.protocol.amqp.AMQPPublisher@4fcaa251
2019-03-07 19:55:27,865 INFO c.z.j.p.a.AMQPSampler: Using hosts: [localhost] addresses: [localhost:15672]
2019-03-07 19:55:33,869 WARN c.r.c.i.ForgivingExceptionHandler: An unexpected connection driver error occured (Exception message: Socket closed)
2019-03-07 19:55:33,869 ERROR c.z.j.p.a.AMQPPublisher: Failed to initialize channel : 
java.util.concurrent.TimeoutException: null
    at com.rabbitmq.utility.BlockingCell.get(BlockingCell.java:77) ~[amqp-client-5.6.0.jar:5.6.0]
    at com.rabbitmq.utility.BlockingCell.uninterruptibleGet(BlockingCell.java:120) ~[amqp-client-5.6.0.jar:5.6.0]
    at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:36) ~[amqp-client-5.6.0.jar:5.6.0]
    at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:502) ~[amqp-client-5.6.0.jar:5.6.0]
    at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:317) ~[amqp-client-5.6.0.jar:5.6.0]
    at com.rabbitmq.client.impl.recovery.RecoveryAwareAMQConnectionFactory.newConnection(RecoveryAwareAMQConnectionFactory.java:64) ~[amqp-client-5.6.0.jar:5.6.0]
    at com.rabbitmq.client.impl.recovery.AutorecoveringConnection.init(AutorecoveringConnection.java:156) ~[amqp-client-5.6.0.jar:5.6.0]
    at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:1106) ~[amqp-client-5.6.0.jar:5.6.0]
    at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:1063) ~[amqp-client-5.6.0.jar:5.6.0]
    at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:885) ~[amqp-client-5.6.0.jar:5.6.0]
    at com.zeroclue.jmeter.protocol.amqp.AMQPSampler.createChannel(AMQPSampler.java:437) ~[JMeterAMQP.jar:?]
    at com.zeroclue.jmeter.protocol.amqp.AMQPSampler.initChannel(AMQPSampler.java:79) ~[JMeterAMQP.jar:?]
    at com.zeroclue.jmeter.protocol.amqp.AMQPPublisher.initChannel(AMQPPublisher.java:266) ~[JMeterAMQP.jar:?]
    at com.zeroclue.jmeter.protocol.amqp.AMQPPublisher.sample(AMQPPublisher.java:69) [JMeterAMQP.jar:?]
    at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:491) [ApacheJMeter_core.jar:3.2 r1790748]
    at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:425) [ApacheJMeter_core.jar:3.2 r1790748]
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:254) [ApacheJMeter_core.jar:3.2 r1790748]
    at java.lang.Thread.run(Unknown Source) [?:?]
2019-03-07 19:55:33,869 INFO o.a.j.t.JMeterThread: Thread is done: RabbitMQ Group 1-1
2019-03-07 19:55:33,869 INFO o.a.j.t.JMeterThread: Thread finished: RabbitMQ Group 1-1
2019-03-07 19:55:33,869 INFO c.z.j.p.a.AMQPSampler: AMQPSampler.threadFinished called
2019-03-07 19:55:33,869 INFO o.a.j.e.StandardJMeterEngine: Notifying test listeners of end of test
2019-03-07 19:55:33,869 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, *local*)

0 个答案:

没有答案