activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Shannon <>
Subject Re: kahadb index file larger than journal file
Date Tue, 24 Jan 2017 12:17:57 GMT
The index grows based off the amount of data it tracks in the journal,
but doesn't shrink.  This means if you had a lot of data in your
journal at some point (several gigabytes, etc) then the index would
have grown in size with enough page files to keep track of all of the
data.  This is usually not an issue because the index size generally
stabilizes at some point relative to the work load of the broker.   If
you really want to shrink it the only way right now is to stop the
broker, delete the index and restart so it does a replay and rebuilds
the index but the size would just grow again as messages flow.

On Mon, Jan 23, 2017 at 8:06 PM, Scorpio <> wrote:
> Hi, All,
> In my activemq instance, I find that the kahadb index file is larger than
> the journal file.
> As far as I know, / is the meta store, index for the journal file,
> which should means it is much smaller than the journal file. However, it
> does not look like that. The index file seems to keep growing while the
> journal file is rotated. Do I miss something? Thanks.
> Log attached:
> root@host:~/run/apache-activemq-5.13.1/data/kahadb# du * -sh
> 16M     db-16.log
> 1.2G
> 3.2M    db.redo
> 4.0K    lock
> root@host:~/run/apache-activemq-5.13.1/data/kahadb#
> Kind regards,
> Scorpio
> --
> View this message in context:
> Sent from the ActiveMQ - User mailing list archive at

View raw message