activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chetan Sarva <>
Subject Broker deadlock in queue message delivery
Date Wed, 12 Aug 2009 22:08:07 GMT

We appear to be facing a deadlock during queue message delivery. See
the following stack dump:

"ActiveMQ Transport: tcp:///" daemon prio=10
tid=0x00002aab002a3800 nid=0x281e in Object.wait()
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        at org.apache.activemq.usage.Usage.waitForSpace(
        - locked <0x00002aaab37c9e68> (a java.lang.Object)
        - locked <0x00002aaab3a8cb48> (a java.lang.Object)


and several (15) of these:

"ActiveMQ Transport: tcp:///" daemon prio=10
tid=0x00002aab00fbd800 nid=0x27f8 waiting for monitor entry
   java.lang.Thread.State: BLOCKED (on object monitor)


                                                      - waiting to
lock <0x00002aaab3a8cb48> (a java.lang.Object)

We're using 5.3 (via fusesource) with the Kaha persistence adapter.
Full broker config can be seen here -

It would seem from the stack trace above and from looking at the
source, that it thinks the store usage is greater than 100% (just a
guess) and is waiting for it to fall back to normal levels, however
the entire data folder was only 630mb at the time of the deadlock. On
restarting the server (had to kill -9 due to unresponsive threads) the
data folder was no longer readable so I had to remove it (have a
backup) in order to get the server started again.

Any ideas as to what's going on here?



View raw message