ActiveMQ - memory not released after consuming all messages -
i've made test, based on example solution of activemq-cpp library. in test send 50,000 messages queue, , after they're sent consume them, individual_acknowledge
on session , message->acknowledge()
on every consumed message. consumer asynchronous.
memory (private working set) of java.exe before sending messages: 209,320 kb. after sending messages: 412,548 kb. after consuming messages: 434,637 kb. meaning, although queue size 0, memory not released. missing? thanks.
besides jvm processing mentioned above there number of other factors in play here. depending on state of broker when started producer sending messages there number of resources allocated on broker create queue , various other management objects remain in memory facilitate message routing etc. analyze memory usage , check leaks should use tool yourkit etc.
Comments
Post a Comment