RabbitMQ performance tool

214 views
Skip to first unread message

Peng Jin

unread,
Apr 24, 2017, 3:28:23ā€ÆAM4/24/17
to rabbitmq-users
Hi all,

I am trying to use the performance tool following the instructions on this web page. https://www.cloudamqp.com/blog/2016-11-18-load-testing-and-performance-measurements-rabbitmq.html. I have already downloaded the rabbitmq-java-client-bin-3.5.7. However, i got an error like this:

rabbitmq-java-client-bin-3.5.7/runjava.sh com.rabbitmq.examples.PerfTest --uri $uri --consumers 10 --producers 5 --autoack

starting consumer #0

Main thread caught exception: com.rabbitmq.client.PossibleAuthenticationFailureException: Possibly caused by authentication failure

com.rabbitmq.client.PossibleAuthenticationFailureException: Possibly caused by authentication failure

at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:342)

at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:647)

at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:677)

at com.rabbitmq.examples.perf.MulticastSet.run(MulticastSet.java:56)

at com.rabbitmq.examples.PerfTest.main(PerfTest.java:117)

Caused by: com.rabbitmq.client.ShutdownSignalException: connection error

at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:67)

at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:37)

at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:367)

at com.rabbitmq.client.impl.AMQChannel.privateRpc(AMQChannel.java:234)

at com.rabbitmq.client.impl.AMQChannel.rpc(AMQChannel.java:212)

at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:327)

... 4 more

Caused by: java.io.EOFException

at java.io.DataInputStream.readUnsignedByte(DataInputStream.java:290)

at com.rabbitmq.client.impl.Frame.readFrom(Frame.java:95)

at com.rabbitmq.client.impl.SocketFrameHandler.readFrame(SocketFrameHandler.java:139)

at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:536)

at java.lang.Thread.run(Thread.java:745)


BTW I have set the uri to uri=amqp://jin:password@localhost/vhost
Can anyone please tell me how to solve the problem and how to use the performance tools? Thank you very much.

Michael Klishin

unread,
Apr 24, 2017, 5:08:36ā€ÆAM4/24/17
to rabbitm...@googlegroups.com
PerfTool is a standalone project now, seeĀ https://www.rabbitmq.com/java-tools.html.

The exception says that the server closed TCP connection before AMQP 0-9-1 connection
was opened, which is how the spec dictates the server to behave when authentication fails.

RabbitMQ has introduced a protocol extension to make this unambiguous:

It has been available since 3.2.0, which has been around for a few years:

See server logs for clues and consider upgrading (definitely PerfTest and also the server).

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ

Peng Jin

unread,
Apr 24, 2017, 11:05:46ā€ÆPM4/24/17
to rabbitmq-users
Thank you very much!
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages