ActiveMQ KahaDB archive data logs does not work

664 Views Asked by At

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.

0

There are 0 best solutions below