activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dariusz Szablinski (JIRA)" <>
Subject [jira] [Commented] (AMQ-2721) Broker hangs reading KahaDB data store
Date Wed, 06 Apr 2011 22:42:05 GMT


Dariusz Szablinski commented on AMQ-2721:

In the past I came accross similar issue in the other application. In short: not synchronized,
concurrent put/get operations on HashMap can cause infinite loop.
See this blog:

I think this problem has been fixed already (at least in current trunk) by adding synchronization
on inflightTransactions map in getInflightTx method. In 5.3.1 this map wasn't synchronized
and I think that caused your broker hang. 

> Broker hangs reading KahaDB data store
> --------------------------------------
>                 Key: AMQ-2721
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.3.1
>         Environment: Red hat enterprise
>            Reporter: Dennis Klinkott
>             Fix For: 5.6.0
>         Attachments: brokerjstack.log
> Broker hangs on loading the data store. Happens after using the broker for 10 hours in
productive environment.
> In broker log the last entries we see is a bunch of loading kahadb debug entries.
> 2010-05-05 16:06:19,462 | DEBUG | loading | org.apache.kahadb.index.BTreeIndex | main
> But the broker doesn't stall completely. It is doing something with high cpu load. But
it doesn't get the data store loaded. Even after a few hours it doesn't get finished (usually
only takes a few seconds).
> I took a few jstack-dumps where we can see the broker being busy putting something into
a hashmap.
> We have 2 brokers connected as network of brokers.

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message