activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Shannon <>
Subject Re: JournalDiskSyncStrategy in KahaDBStore
Date Wed, 30 Nov 2016 14:06:49 GMT
I can update the documentation for this feature.

There is a new property on KahaDB called "journalDiskSyncStrategy" that can
be set either in XML config or with Java on the persistence adapter.

For example, if using XML:

     <kahaDB directory="activemq-data" journalMaxFileLength="32mb"

Setting to periodic will trigger disk flushes at set intervals instead of
after every message which will reduce the load on the disk and should
improve throughput.  The default strategy is still set to "always" as it is
the safest option.  If necessary you can also tune the frequency of the
periodic sync using the property "journalDiskSyncInterval".   The default
is set to sync once a second and that seems to give a good combination of
performance vs reliability if you can tolerate up to one second of
potential message loss.

On Wed, Nov 30, 2016 at 5:30 AM, yogu13 <> wrote:

> As part of there is a new
> option introduced of periodic Sync for journal data. I do not see any
> documentation of how to go about using it.
> Does anyone know how to use it ?
> Regards,
> -Yogesh
> --
> View this message in context:
> JournalDiskSyncStrategy-in-KahaDBStore-tp4719603.html
> Sent from the ActiveMQ - User mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message