[ https://issues.apache.org/jira/browse/AMQ-9390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17786002#comment-17786002 ]
ncasaux commented on AMQ-9390: ------------------------------ Hello [~jbertram] , I guess you're right, I wanted to be sure to have a proper layout to introduce the issue. I'll send a message to the user list. > Incorrect memory percent usage ? > -------------------------------- > > Key: AMQ-9390 > URL: https://issues.apache.org/jira/browse/AMQ-9390 > Project: ActiveMQ > Issue Type: Bug > Affects Versions: 5.17.6 > Environment: Windows > Reporter: ncasaux > Priority: Major > Attachments: image-2023-11-14-16-51-25-459.png, > image-2023-11-14-16-52-08-885.png > > > Hello, > I'm facing some memory problems with ActiveMQ with VirtualTopics and > associated queues. > My scenario is this: > * I'm using ActiveMQ 5.17.6 on windows > * I'm using vanilla config (so -Xms1G -Xmx1G) > * I have one virtual topic {{VirtualTopic.test}} > * I have 3 queues associated to it: > ** {{Consumer.a.VirtualTopic.test}} > ** {{Consumer.b.VirtualTopic.test}} > ** {{Consumer.c.VirtualTopic.test}} > * I publish with JMeter 2000 messages without persistence with a 25 Ko > payload (which represent 25 Ko * 2000 = 50 Mo of data to store in the broker) > Expected results: > * The 3 queues are filled with 4000 messages each. > * The heap used on visualVM is roughly 80Mo after GC (I assume 50 Mo of > message + heap required by the broker) > * No store or temp is used. > * Memory limit in the broker shows 751619277 bytes (70% of 1Go) > Unexpected results: > * The MemoryPercentUsage shows 20% (which represents about 150 Mo) > I guess that this 150 Mo is the total (3 * 50 Mo) of the memory used by the 3 > queues, but they actually store 3 times the same messages. And the Heap usage > (80 Mo) kind of proves it. > The real issue is that when I publish some more messages, the broker > considers very quickly that the memory used is falsely high, and then it > starts some persistence mechanism. And this problem obviously gets worst as > I add more queues to the virtual topic. > I hope it's clear enough ! I added some screenshots if it can help :) > Thanks in advance ! > > !image-2023-11-14-16-51-25-459.png|width=945,height=355! > > !image-2023-11-14-16-52-08-885.png! -- This message was sent by Atlassian Jira (v8.20.10#820010)