Hello Jean-Baptiste, Just for you to know : we are using ActiveMQ in TomEE context.
You said: " You can setup the storeUsage in activemq.xml. It will limit the data store." Does it mean that if we set this value it will not create new db-xxx.log files if the number of db-xxx.log files * 32 Mb >= storeUsage value ? BTW, do you know how to set this storeUsage value in TomEE context ? could it be passed in this connection string broker:(tcp://localhost:61616)?usekahadb=true&kahadb.directory=.... ? Best Regards. -----Original Message----- From: Jean-Baptiste Onofre [mailto:j...@nanthrax.net] Sent: lundi 2 mars 2020 12:30 To: users@activemq.apache.org Subject: Re: Is it possible to limit the storage in ActiveMQ ? Hi, You can setup the storeUsage in activemq.xml. It will limit the data store. Regarding the db-xxx.log, it’s the transactional log files, and they should be removed when a transaction is done. If you see a lot of db-xxx.log, it means that you have lot of pending persistent messages. A classic mistake is a DLQ never purge: ActiveMQ stores the transaction (rotated every 32MB by default) for the pending message. It means that retention is the date of the oldest pending message. Check your DLQ and eventually use the sharedDeadLetterStrategy to automatically purge the DLQ after a timeout. A possible improvement (depending of the use case) is to reduce the size of the journal in KahaDB. If you need help for the setup of that, please let me know. Regards JB > Le 2 mars 2020 à 12:04, COURTAULT Francois > <francois.courta...@thalesgroup.com> a écrit : > > Hello everyone, > > In case we have slow consumer and fast producer, for persistent messages, > those ones are stored in db-x.log files. > In order to avoid a file system full, is there a way to limit the number of > files or the number of messages or something else ? > > Best Regards. > > >