activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Mihaly <>
Subject activemq hangups
Date Tue, 18 Jul 2006 17:41:05 GMT

 I have had two hangup on the message server.  The first happened yesterday. 
After about a week of running smoothly, all the connections to a topic hung. 
All message consumers would hang and all publishers would hang.  I tried
shutting down the server and starting back up, and the first time a client
would come it, it would hang. Subsequent calls would fail with an already
connected error.   Finally, I just destroyed the topic and recreated the
topic and things started working again.   I am afraid it is going to happen
again.  I just do not know why it is hanging.  There was nothing in the
output logs anywhere.  I have a few questions I am hoping someone can
   1). When I brosed the topic itself, it looks like every message is in
there.   There were a lot of messages.  Is there a limit to how many
messages can be in a topic?  I am assuming there is no limit since we can
have a durable subscriber that is run infrequently and messages can linger
for a while.
    2). That said, some of those message should have been cleaned up because
all subscribers had read them.  When do messages get cleaned out and how? 
Do I have to set something up to do this?
    3). Is there something I can set, a debuging state, that might tell me
what is happening when it gets stuck?  Is there something I can do the next
time it gets stuck to figure out why.  Right now, this is a problem because
things break when this happens, I miss messages and then we loose message
when I destroy and create messages.
    I have written another stress case example.   It is just creating
thousands of events by connecting, creating a session, creating a publisher,
publishing a message, and then closing publisher, session and connection. 
It does this for each message, one at a time.   The first time I ran this,
it hung after writting event 1001.  The connection for event 1002 hung
around, the client returned and tried to connect for event 1002 and got a
refused, already connected error.   It repeated this for each one.    I
killed the client, and restarted it, but unlike the above problem, it has
not created another 30000 events and is continuting without hanging.  Again,
I have no idea why it hung on the first run and I have no diagnotic to help
me figure out what happened.  Also, all the events are in the topic even
though there is no subscriber nor durable subscribers on that topic.  When
will these message disappear?

   Any help would be appreciated.

View this message in context:
Sent from the ActiveMQ - User forum at

View raw message