Reputation: 111
I sent 1.000.000 object messages to the queue, and my kahadb's db.data file became 480 mb. Then my consumer started to get messages. After a while consuming finished and all messages in the queue reached to the target. But when I checked my db.data file, it was still 480 mb. Thats why I want to delete consumed messages.
How can I do that. Is there any property to delete automatically
Upvotes: 5
Views: 9024
Reputation: 1097
Manually you can purge queued messages in the web console http://localhost:8161/
http://activemq.apache.org/how-do-i-purge-a-queue.html
Automatically you can discard expired messages with <sharedDeadLetterStrategy processExpired="false" />
http://activemq.apache.org/message-redelivery-and-dlq-handling.html
Upvotes: 2