1

I have been trying to configure KahaDB to archive the data logs with the configuration below:

<persistenceAdapter>
            <kahaDB directory="${activemq.data}/kahadb" journalMaxFileLength="15mb" archiveDataLogs="true" directoryArchive="${activemq.data}/archive" />
</persistenceAdapter>

It creates an archive directory as configured however it is NOT moving the data log file into that directory.

According to ActiveMQ doc, the cleanup interval is the 30s by default during which it should decide to either delete the data log file or move it to an archive folder. But for some reason, it is not working for me.

Also the db-N.log file inside /kahadb directory is not rolling. At any given time there is only one file db-1.log in that directory. I'm not sure if this has something to do with archive not working at all but i'm just trying to give as much as details as possible.

NOTE: - I'm using ActiveMQ version 5.15.0 - I could not find any related issue reported already on SO and in AMQ forum.

Any help is much appreciated.

ssasi
  • 1,758
  • 1
  • 12
  • 18
  • Are there messages being sent and consumed from the broker when you are observing this? – Tim Bish Dec 19 '17 at 14:54
  • Indeed, messages are sent and consumed fully. And I have noticed that the archive operation did work today once and stopped working after that. Tired of this, I have already built the custom solution to archive messages which is working as I desired. – ssasi Dec 19 '17 at 22:36
  • what was the solution? – Ankur Soni Nov 29 '18 at 16:36
  • I build a custom solution by logging message body to separate log file which is essentially the same as the archive files written by KahaDB. – ssasi Dec 03 '18 at 12:56

0 Answers0