activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mport9491 <mport9...@gmail.com>
Subject FailoverTransport reconnecting too fast on Linux compared to Windows.
Date Thu, 16 Jul 2015 22:27:58 GMT
I have one ActiveMQ broker on my Linux machine and a standalone Java
application that acts as a producer running on my Windows machine. 

I specify my broker url to be to be:
failover://(tcp://10.0.112.49:61616)?timeout=1000&warnAfterReconnectAttempts=1&maxReconnectAttempts=0

Windows scenario:
I start my application and it automatically connects to the ActiveMQ broker.
When I stop the broker, the FailoverTransport tries to reconnect every
second.

2015-07-16 15:14:52,737 ERROR [ActiveMQ Task-1]
(FailoverTransport.java:1099) CSN: Failed to connect to
[tcp://10.0.112.49:61616] after: 1 attempt(s)

This is the expected behavior.

However, when I run the application on Linux, instead of trying to reconnect
every second, it reconnects every 5-10 milliseconds! I was wondering why the
behavior is different.



--
View this message in context: http://activemq.2283324.n4.nabble.com/FailoverTransport-reconnecting-too-fast-on-Linux-compared-to-Windows-tp4699410.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message