Hi there,

I have an application that uses a failover protocol to connect to a broker
hosted on the same machine. When run on my Macbook Air the connection takes
a couple of milliseconds and goes like this:


2009-01-17 22:49:22,833 [mousIoService-3] DEBUG MinaConsumer                  
- Received body:
au.com.blueglue.bluegluedevices.readersocketprotocol.heartbeatnotificat...@1dfe52
2009-01-17 22:49:22,834 [mousIoService-3] DEBUG DefaultTypeConverter          
- Converting null -> java.lang.String with value: null
2009-01-17 22:49:22,834 [mousIoService-3] DEBUG FailoverTransport             
- Waking up reconnect task
2009-01-17 22:49:22,834 [ActiveMQ Task  ] DEBUG FailoverTransport             
- Attempting connect to: tcp://localhost:61616
2009-01-17 22:49:22,835 [ActiveMQ Task  ] DEBUG WireFormatNegotiator          
- Sending: WireFormatInfo { version=3,
properties={TightEncodingEnabled=true, CacheSize=1024,
TcpNoDelayEnabled=true, SizePrefixDisabled=false, StackTraceEnabled=true,
MaxInactivityDurationInitalDelay=10000, MaxInactivityDuration=30000,
CacheEnabled=true}, magic=[A,c,t,i,v,e,M,Q]}


However on my Linux machine the above sequence takes over 100ms and goes
like this:


2009-01-17 21:56:56,572 [mousIoService-4] DEBUG MinaConsumer                  
- Received body:
au.com.blueglue.bluegluedevices.readersocketprotocol.heartbeatnotificat...@2728ed5f
2009-01-17 21:56:56,572 [mousIoService-4] DEBUG DefaultTypeConverter          
- Converting null -> java.lang.String with value: null
2009-01-17 21:56:56,572 [mousIoService-4] DEBUG FailoverTransport             
- Waking up reconnect task
2009-01-17 21:56:56,573 [mousIoService-4] DEBUG FailoverTransport             
- Started.
2009-01-17 21:56:56,573 [mousIoService-4] DEBUG FailoverTransport             
- Waking up reconnect task
2009-01-17 21:56:56,573 [mousIoService-4] DEBUG FailoverTransport             
- Waiting for transport to reconnect.
2009-01-17 21:56:56,573 [ActiveMQ Task  ] DEBUG FailoverTransport             
- Attempting connect to: tcp://127.0.0.1:61616
2009-01-17 21:56:56,618 [nerContainer-62] DEBUG
efaultMessageListenerContainer - Consumer [ActiveMQMessageConsumer {
value=ID:<<some domain>-50284-1232189785356-0:0:1:1, started=true
}] of session [ActiveMQSession {id=ID:<some
domain>-50284-1232189785356-0:0:1,started=true}] did not receive a
message
2009-01-17 21:56:56,618 [nerContainer-61] DEBUG
efaultMessageListenerContainer - Consumer [ActiveMQMessageConsumer {
value=ID:<some domain>-50284-1232189785356-0:0:2:1, started=true }] of
session [ActiveMQSession {id=ID:<some
domain>-50284-1232189785356-0:0:2,started=true}] did not receive a
message
2009-01-17 21:56:56,695 [ActiveMQ Task  ] DEBUG WireFormatNegotiator          
- Sending: WireFormatInfo { version=3, properties={CacheSize=1024,
CacheEnabled=true, SizePrefixDisabled=false,
MaxInactivityDurationInitalDelay=10000, TcpNoDelayEnabled=true,
MaxInactivityDuration=30000, TightEncodingEnabled=true,
StackTraceEnabled=true}, magic=[A,c,t,i,v,e,M,Q]}


Why is it taking so much longer to connect to the broker on my Linux
machine? The Linux machine is much more powerful than this laptop.


Thanks for any advice.


Kind regards,

Christopher


-- 
View this message in context: 
http://www.nabble.com/Broker-connection-taking-much-longer-on-one-machine-tp21515748p21515748.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to