[ 
https://issues.apache.org/jira/browse/ARTEMIS-5383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Clebert Suconic closed ARTEMIS-5383.
------------------------------------

> Performance issues with HierarchicalRepositoryChangeListener
> ------------------------------------------------------------
>
>                 Key: ARTEMIS-5383
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5383
>             Project: ActiveMQ Artemis
>          Issue Type: Task
>    Affects Versions: 2.37.0
>            Reporter: Josh Byster
>            Assignee: Justin Bertram
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.41.0
>
>         Attachments: Screenshot 2025-04-04 at 1.57.32 PM.png
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> On brokers with many queues, we find that upon disconnects of many components 
> simultaneously, the broker immediately begins to slow. My suspicion is due to 
> the queue auto-deletion behavior, where we do an {{ArrayList#remove(Object)}} 
> in {{HierarchalObjectRepository#unRegisterListener}} which I believe is 
> linear at least in the number of queues. With over a million queues, this 
> becomes incredibly slow. Perhaps we can optimize the find of these listeners 
> (maybe a map with an ID)?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to