How to limit the number of messages in a queue?
Issue
We want to know how to limit the messages size in a queue/limit the disk usage of a queue.
We know that if there is not any limit for the queue and if this queue's consumer is too slow then the disk size will be full of the messages for this destination. Our purpose is not letting one destination have a global impact.
We want to limit a queue only can have 4000 messages size. If the queue messages size achieved this limit, then the client can not send messages to the queue.
Environment
- Red Hat JBoss A-MQ 6.X
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
