문제

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

올바른 솔루션이 없습니다

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top