activemq-classickahadb

What is the maximum number of xxx of db-xxx in kahaDB (ActiveMQ)?


I'm looking for the maximum number of xxx of db-xxx.log in kahaDB (ActiveMQ).

I set the db file configuration in activemq.xml for a production site as below.

<persistenceAdapter>
  <kahaDB directory="${activemq.data}/kahadb" journalMaxFileLength="32mb" cleanupInterval="5000"/>
</persistenceAdapter>

The remained kahadb files currently are db-5.log and db-6.log, but I'm not sure the maximum index number (xxx of db-xxx.log) and the behavior when reached the maximum number like db-9999999.log.


Solution

  • The db file number is a Java int value. Therefore, the theoretical max number of db-*.log files is Integer.MAX_VALUE or 2,147,483,647.