activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darren Govoni <dar...@ontrenet.com>
Subject Re: Channel was inactive for too long. sigh
Date Wed, 22 Jun 2011 16:12:42 GMT
Ok, I moved my connection creation into my objects runnable thread and 
outside its constructor
and the connections stay up now. Probably something was falling out of 
scope or getting gc'd. silly me.

On 06/22/2011 11:57 AM, Darren Govoni wrote:
> Yeah, I can't detect why its happening and the
>
> maxInactivityDuration=0 doesn't work. Maybe I can set a trace to dig 
> deeper?
>
> I'm using pyactivemq over activemq-cpp so maybe there are some version 
> issues. Not sure.
>
> Maybe the client is busy doing work in its main thread and can't 
> respond to the broker
> pings? If that's so, is it common practice to multithread clients?
>
> On 06/22/2011 07:11 AM, Dejan Bosanac wrote:
>> Hi Darren,
>>
>> inactivity monitor work by sending "keep alive" commands between 
>> client and
>> the broker to detect inactive connection. So this exception means 
>> that your
>> connection becomes unstable for some reason and that's why it gets 
>> closed.
>>
>> btw. if you use maxInactivityDuration=0 it should turn off inactivity
>> monitor, but from your log it doesn't seems so.
>>
>>
>> Regards
>


Mime
View raw message