activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher G. Stach II" <...@ldsys.net>
Subject Re: Async Exception, multiple threads, one connection
Date Thu, 08 Feb 2007 18:41:36 GMT
Paul French wrote:
> 
> Okay, I switched on garbage collection output using the flag -verbosegc and
> the Aysnc failure on the client does coincide with a FULL GC event. On my
> client system I am close to the max heap size nearly all the time. The FULL
> GC takes about 25 seconds to complete. All client threads are suspended
> during this time. I assume then that the broker is not recieving heartbeat
> messages of some sort from the client program and so closes the connection.
> Again it appears from the broker log this is the case. Hence when the client
> starts again the connection has been lost. Hence the ultimate solution is to
> stop the FULL GC happening in the first place!!
> 
> However if I set the connection url to use failover can someone explain to
> me what happens if i have created 20 sessions (where each session has a one
> consumer and one producer) against this connection and then the connection
> fails but is reconnected?
> 
> Does my client program need to trap any Exceptions to continue or will all
> the sessions, consumers and producers still be usable even after the
> connection has been re-established?
> 
> What happens to any temporary queues I have created. Temporary queues are
> unique per connection. Hence when a connection is re-established will
> ActiveMQ maintain my current temporary queues?
> 

Use the CMS collector and parallel collectors for the other generations.

-- 
Christopher G. Stach II


Mime
View raw message