This has been occuring since version 5.10 for us. It appeared that if we run activemq as a different user than who owns the activemq files then the kahadb will lock up and activemq will crash.
So we've made sure we chown user:user -R ./activemq then run (without sudo) ./activemq/bin/linux-x86-64/activemq start That's stopped activemq from crashing out but we still are seeing this every 4 hours like clockwork. 2015-02-19 10:48:57,686 | INFO | PListStore:[/opt/apache-activemq-5.11.0/data/localhost/tmp_storage] started | org.apache.activemq.store.kahadb.plist.PListStoreImpl | main 2015-02-19 10:48:57,723 | INFO | Using Persistence Adapter: KahaDBPersistenceAdapter[/opt/apache-activemq-5.11.0/data/kahadb] | org.apache.activemq.broker.BrokerService | main 2015-02-19 10:48:57,735 | INFO | Database /opt/apache-activemq-5.11.0/data/kahadb/lock is locked... waiting 10 seconds for the database to be unlocked. Reason: java.io.IOException: File '/opt/apache-activemq-5.11.0/data/kahadb/lock' could not be locked. | org.apache.activemq.store.SharedFileLocker | main -- View this message in context: http://activemq.2283324.n4.nabble.com/kahadb-lock-in-logs-tp4691746.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.
