Chapter 4. Using the LevelDB Persistence Adapter
Abstract
Overview
- higher persistent throughput
- faster recovery times when a broker restarts
- supports concurrent read access
- no pausing during garbage collection cycles
- uses fewer read IO operations to load stored messages
- supports XA transactions
- checks for duplicate messages
- exposes status via JMX for monitoring
- supports replication
Platform support
Basic configuration
levelDB element in the persistenceAdapter element of your broker's configuration. The levelDB element's attributes are used to configure the message store.
directory attribute. This will ensure that the broker will not conflict with other brokers.
activemq-data directory.
Example 4.1. Configuring the LevelDB Message Store
<broker brokerName="broker" persistent="true" ... >
...
<persistenceAdapter>
<levelDB directory="activemq-data" />
</persistenceAdapter>
...
</broker>Configuration attributes
Table 4.1. Configuration Properties of the LevelDB Message Store—standard LevelDB attributes
Table 4.2. Configuration Properties of the LevelDB Message Store—pluggable storage locker attributes

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.