Lots of "Successfully connected" messages with failover setup

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Lots of "Successfully connected" messages with failover setup

drever
Since we're connecting to a broker with a failover setup, the logging is
flooded with these
11:51:36,115 INFO
[org.apache.activemq.transport.failover.FailoverTransport] (ActiveMQ Task-1)
Successfully connected to tcp://<host>:61616

If I try to reproduce this locally, all I have to do is setup a broker, no
messaging involved, in JBoss 7.2, like so:
                <resource-adapter id="activemq-ra">
                    <archive>
                        activemq-rar.rar
                    </archive>
                    <config-property name="ServerUrl">
                       
failover:(tcp://localhost:61616,tcp://localhost:61616)?randomize=false
                    </config-property>
                    <connection-definitions>
                        <connection-definition
class-name="org.apache.activemq.ra.ActiveMQManagedConnectionFactory"
jndi-name="activemq/ConnectionFactory" pool-name="activemq">
                        </connection-definition>
                    </connection-definitions>
                </resource-adapter>

We're using ActiveMQ 5.15.9 / 5.15.10, JBoss 7.2

I've found that it's related to (or merely triggered by) the transaction
managers periodic recovery. At least when running locally.
I can control the amount of times I see the message by setting the recovery
period properties:
-DRecoveryEnvironmentBean.periodicRecoveryPeriod=30
-DRecoveryEnvironmentBean.recoveryBackoffPeriod=10

But why is it happening?






--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html