Re: AW: Artemis - Help understanding heap dump

2025-01-22 Thread Clebert Suconic
just to make my response a bit clearer: max-read will look into the pending acks, while prefetch will only look at what's currently in the queue. (that's a TL;DR (Too long, didn't read) of my previous messages). On 2025/01/22 16:29:21 Clebert Suconic wrote: > The logic is not complex.. the whol

Re: AW: Artemis - Help understanding heap dump

2025-01-22 Thread Clebert Suconic
The logic is not complex.. the whole thing is controlled here. The source code will be a very good documentation in this case: https://github.com/apache/activemq-artemis/blob/1ba0b65babf298e4dc47951aa6998b2d0ac02be6/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueIm

Re: AW: Artemis - Help understanding heap dump

2025-01-22 Thread Clebert Suconic
sure... I originally did not want to implement prefetch.. but my user had a case where they needed a soft limit and a hard limit At max-read, the system will stop fetching for data... period... no more messages will come. With Prefetch.. if you receive the messages on the consumer, it will