1

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.

Justin Bertram
  • 29,372
  • 4
  • 21
  • 43
  • What size is your disk? A 10TB disk can hold around 32,000 32MB files. You're way more likely to run out of disk space before you hit the maximum index value. – Justin Bertram Jun 08 '22 at 17:10

1 Answers1

0

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.

Matt Pavlovich
  • 4,087
  • 1
  • 9
  • 17