Hivemq-ce persistence config

What is the equivalent of mosquitto:

persistence true
persistence_location /mosquitto/data


Hi caevv,
HiveMQ always persists its data.
You can change the folder by following the user guide.

Kind regards,

So basically for the persistence storage folder, would it be? HIVEMQ_DATA_FOLDER HiveMQ data folder

In order to set your data folder you need to add the following:

As Java option:


as Environment variable:

export HIVEMQ_DATA_FOLDER=/path/to/your/folder

Please not that HiveMQ uses the HIVEMQ_HOME/data folder by default, if you do not specifically set a folder.

1 Like