Re: RE: Is it possible to limit the storage in ActiveMQ ?

2020-03-07 Thread Martin Lichtin
Hi I've written a plugin for ActiveMQ that monitors disk space usage and that will close the connectors on low disk space (and re-open once disk space is again sufficient). Let me know know in case you are interested. - Martin On 02.03.2020 12:24, COURTAULT Francois wrote: Hello, I suppose

Re: Is it possible to limit the storage in ActiveMQ ?

2020-03-03 Thread Jean-Baptiste Onofre
Hi, Just checked in the code, and you are right: storeUsage == db data (not journal log files). Regards JB > Le 3 mars 2020 à 14:51, Tim Bain a écrit : > > Based on https://dzone.com/articles/temp-store-and-memory-percent, it > sounds like storeLimit considers only the messages (db*.data)

Re: Is it possible to limit the storage in ActiveMQ ?

2020-03-03 Thread Tim Bain
Based on https://dzone.com/articles/temp-store-and-memory-percent, it sounds like storeLimit considers only the messages (db*.data) but not the redo log. So the amount of disk used in total could be a bit larger than the limit that's set. Tim On Mon, Mar 2, 2020, 6:48 AM Jean-Baptiste Onofre

Re: Is it possible to limit the storage in ActiveMQ ?

2020-03-02 Thread Jean-Baptiste Onofre
Hi, storeUsage == db.data + db.log + redo AFAIR. Regards JB > Le 2 mars 2020 à 14:45, COURTAULT Francois > a écrit : > > Hello, > > What about this question below ? > >> 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 *

RE: Is it possible to limit the storage in ActiveMQ ?

2020-03-02 Thread COURTAULT Francois
Hello, What about this question below ? > 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 ? Best Regards. -Original Message- From: Jonathan Gallimore

Re: Is it possible to limit the storage in ActiveMQ ?

2020-03-02 Thread Jonathan Gallimore
I don't know if you can specify the store size via the URL - I suspect not. You can provide an activemq.xml config file for ActiveMQ running in TomEE - high level instructions are here: https://tomee.apache.org/latest/docs/jms-resources-and-mdb-container.html - see the "Internal ActiveMQ Broker

RE: Is it possible to limit the storage in ActiveMQ ?

2020-03-02 Thread COURTAULT Francois
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

Re: Is it possible to limit the storage in ActiveMQ ?

2020-03-02 Thread Jean-Baptiste Onofre
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

RE: Is it possible to limit the storage in ActiveMQ ?

2020-03-02 Thread COURTAULT Francois
Hello, I suppose you're talking about Artemis but I am using ActiveMQ and not Artemis. I should highlight this in my first post. Any solution for ActiveMQ ? Best Regards. -Original Message- From: brusdev [mailto:bruscin...@gmail.com] Sent: lundi 2 mars 2020 12:20 To:

Re: Is it possible to limit the storage in ActiveMQ ?

2020-03-02 Thread brusdev
Hi, the System will perform scans on the disk to determine if the disk is beyond a configured limit. These are configured through `max-disk-usage` in percentage. Once that limit is reached any message will be blocked. (unless the protocol doesn't support flow control on which case there will be