RabbitMQ PrefTest connection timeout

195 views
Skip to first unread message

Chanan Berler

unread,
Jul 4, 2017, 5:38:31 AM7/4/17
to rabbitmq-users
Hi All,

When trying to run PrefTest checking RabbitMQ performance i always get a timeout error message:

bash-4.3# runjava com.rabbitmq.perf.PerfTest -h amqps://preftest:preftest@messagebus  --type topic  --queue test-2 --size 1000 --producers 1 --consumers 1 --autoack true
id: test-090254-482, starting consumer #0
Main thread caught exception: java.net.SocketException: Connection reset
java.net.SocketException: Connection reset
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:115)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:155)
        at sun.security.ssl.OutputRecord.writeBuffer(OutputRecord.java:431)
        at sun.security.ssl.OutputRecord.write(OutputRecord.java:417)
        at sun.security.ssl.SSLSocketImpl.writeRecordInternal(SSLSocketImpl.java:876)
        at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:847)
        at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:717)
        at sun.security.ssl.Handshaker.sendChangeCipherSpec(Handshaker.java:1124)
        at sun.security.ssl.ClientHandshaker.sendChangeCipherAndFinish(ClientHandshaker.java:1216)
        at sun.security.ssl.ClientHandshaker.serverHelloDone(ClientHandshaker.java:1128)
        at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:348)
        at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026)
        at sun.security.ssl.Handshaker.process_record(Handshaker.java:961)
        at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)
        at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
        at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:747)
        at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)
        at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
        at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
        at java.io.DataOutputStream.flush(DataOutputStream.java:123)
        at com.rabbitmq.client.impl.SocketFrameHandler.sendHeader(SocketFrameHandler.java:147)
        at com.rabbitmq.client.impl.SocketFrameHandler.sendHeader(SocketFrameHandler.java:153)
        at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:285)
        at com.rabbitmq.client.impl.recovery.RecoveryAwareAMQConnectionFactory.newConnection(RecoveryAwareAMQConnectionFactory.java:62)
        at com.rabbitmq.client.impl.recovery.AutorecoveringConnection.init(AutorecoveringConnection.java:99)
        at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:900)
        at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:859)
        at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:817)
        at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:954)
        at com.rabbitmq.perf.MulticastSet.run(MulticastSet.java:81)
        at com.rabbitmq.perf.PerfTest.main(PerfTest.java:134)
bash-4.3#

Arnaud Cogoluègnes

unread,
Jul 4, 2017, 9:23:58 AM7/4/17
to rabbitm...@googlegroups.com
Are you sure the broker is expecting TLS connections on the default TLS port (that is 5671)?

Another URL you can try (if you want to connect to the / vhost): amqps://preftest:preftest@messagebus:5671/%2f

--
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.

Michael Klishin

unread,
Jul 4, 2017, 11:12:41 AM7/4/17
to rabbitm...@googlegroups.com
"Connection reset" means that TCP connection was refused by the server,
e.g. because it does not listen on port 5671 (TLS is not configured?) or because of a firewall.

TLS-related things.

In case you are not looking to use TLS, change URI to "amqp" instead of "amqps".

--
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
Reply all
Reply to author
Forward
0 new messages