You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Jamie <ja...@mailarchiva.com> on 2012/08/21 08:02:18 UTC

Store is locked... waiting 10 seconds

Hi Everyone

A user is complaining about his application logs being filled up with 
"Store is locked... waiting 10 seconds". The KahaPersistenceAdapter 
seems to be having trouble obtaining a lock. I am using an embedded 
broker, but the broker is only ever started once. I am quite sure of 
this. The only other scenario I can think of, aside from a possible bug, 
is that the customer shutdown the application uncleanly and a lock file 
was left lying around. Has anyone else encountered this situation? Where 
else should I be looking to solve this. Any ideas?

Much appreciate

Jamie

2012-08-20 17:10:39 [localhost-startStop-1] INFO
o.a.activemq.kaha.impl.KahaStore - Kaha Store using data directory
/var/opt/mailarchiva/ROOT/queue/kaha
2012-08-20 17:10:39 [localhost-startStop-1] INFO
o.a.a.s.k.KahaPersistenceAdapter - Store is locked... waiting 10 seconds
for the Store to be unlocked.
2012-08-20 17:10:49 [localhost-startStop-1] INFO
o.a.activemq.kaha.impl.KahaStore - Kaha Store using data directory
/var/opt/mailarchiva/ROOT/queue/kaha
2012-08-20 17:10:49 [localhost-startStop-1] INFO
o.a.a.s.k.KahaPersistenceAdapter - Store is locked... waiting 10 seconds
for the Store to be unlocked.
2012-08-20 17:10:59 [localhost-startStop-1] INFO
o.a.activemq.kaha.impl.KahaStore - Kaha Store using data directory
/var/opt/mailarchiva/ROOT/queue/kaha
2012-08-20 17:10:59 [localhost-startStop-1] INFO
o.a.a.s.k.KahaPersistenceAdapter - Store is locked... waiting 10 seconds
for the Store to be unlocked.
2012-08-20 17:11:09 [localhost-startStop-1] INFO
o.a.activemq.kaha.impl.KahaStore - Kaha Store using data directory
/var/opt/mailarchiva/ROOT/queue/kaha
2012-08-20 17:11:09 [localhost-startStop-1] INFO
o.a.a.s.k.KahaPersistenceAdapter - Store is locked... waiting 10 seconds
for the Store to be unlocked.
2012-08-20 17:11:19 [localhost-startStop-1] INFO
o.a.activemq.kaha.impl.KahaStore - Kaha Store using data directory
/var/opt/mailarchiva/ROOT/queue/kaha
2012-08-20 17:11:19 [localhost-startStop-1] INFO
o.a.a.s.k.KahaPersistenceAdapter - Store is locked... waiting 10 seconds
for the Store to be unlocked.



Re: Store is locked... waiting 10 seconds

Posted by Torsten Mielke <to...@fusesource.com>.
What version of ActiveMQ is your user using? If its any later version, i.e. 5.5.0 or higher, I suggest switching to KahaDB as the persistence adapter.



Torsten Mielke
torsten@fusesource.com
tmielke@blogspot.com




On Aug 21, 2012, at 8:02 AM, Jamie wrote:

> Hi Everyone
> 
> A user is complaining about his application logs being filled up with "Store is locked... waiting 10 seconds". The KahaPersistenceAdapter seems to be having trouble obtaining a lock. I am using an embedded broker, but the broker is only ever started once. I am quite sure of this. The only other scenario I can think of, aside from a possible bug, is that the customer shutdown the application uncleanly and a lock file was left lying around. Has anyone else encountered this situation? Where else should I be looking to solve this. Any ideas?
> 
> Much appreciate
> 
> Jamie
> 
> 2012-08-20 17:10:39 [localhost-startStop-1] INFO
> o.a.activemq.kaha.impl.KahaStore - Kaha Store using data directory
> /var/opt/mailarchiva/ROOT/queue/kaha
> 2012-08-20 17:10:39 [localhost-startStop-1] INFO
> o.a.a.s.k.KahaPersistenceAdapter - Store is locked... waiting 10 seconds
> for the Store to be unlocked.
> 2012-08-20 17:10:49 [localhost-startStop-1] INFO
> o.a.activemq.kaha.impl.KahaStore - Kaha Store using data directory
> /var/opt/mailarchiva/ROOT/queue/kaha
> 2012-08-20 17:10:49 [localhost-startStop-1] INFO
> o.a.a.s.k.KahaPersistenceAdapter - Store is locked... waiting 10 seconds
> for the Store to be unlocked.
> 2012-08-20 17:10:59 [localhost-startStop-1] INFO
> o.a.activemq.kaha.impl.KahaStore - Kaha Store using data directory
> /var/opt/mailarchiva/ROOT/queue/kaha
> 2012-08-20 17:10:59 [localhost-startStop-1] INFO
> o.a.a.s.k.KahaPersistenceAdapter - Store is locked... waiting 10 seconds
> for the Store to be unlocked.
> 2012-08-20 17:11:09 [localhost-startStop-1] INFO
> o.a.activemq.kaha.impl.KahaStore - Kaha Store using data directory
> /var/opt/mailarchiva/ROOT/queue/kaha
> 2012-08-20 17:11:09 [localhost-startStop-1] INFO
> o.a.a.s.k.KahaPersistenceAdapter - Store is locked... waiting 10 seconds
> for the Store to be unlocked.
> 2012-08-20 17:11:19 [localhost-startStop-1] INFO
> o.a.activemq.kaha.impl.KahaStore - Kaha Store using data directory
> /var/opt/mailarchiva/ROOT/queue/kaha
> 2012-08-20 17:11:19 [localhost-startStop-1] INFO
> o.a.a.s.k.KahaPersistenceAdapter - Store is locked... waiting 10 seconds
> for the Store to be unlocked.
>