You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@activemq.apache.org by "mattrpav (via GitHub)" <gi...@apache.org> on 2026/08/02 02:28:00 UTC

[I] Update MemoryUsage to use a LongAdder [activemq]

mattrpav opened a new issue, #2275:
URL: https://github.com/apache/activemq/issues/2275

   While performing benchmarks against 6.3.0 with virtual threads, I observed an unexpected degradation in parallelized throughput. 
   
   I honed the test down to everything stripped back and found that since memoryUsage is shared across all destinations the locking here accounted for the majority of wait time. Moving to a lock-free data structure for this metric removes the bottleneck. 
   
   LongAdder does use more memory than an AtomicLong (up to ~2KB), but makes sense in this use case.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact



Re: [I] Refactor MemoryUsage brokerSequence to address contention [activemq]

Posted by "mattrpav (via GitHub)" <gi...@apache.org>.
mattrpav commented on issue #2275:
URL: https://github.com/apache/activemq/issues/2275#issuecomment-5723603069

   This was completed in v6.3.2 and v5.19.12


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact



Re: [I] Refactor MemoryUsage brokerSequence to address contention [activemq]

Posted by "mattrpav (via GitHub)" <gi...@apache.org>.
mattrpav closed issue #2275: Refactor MemoryUsage brokerSequence to address contention
URL: https://github.com/apache/activemq/issues/2275


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact