[jira] [Commented] (JAMES-4199) ActiveMQ: memory leak when browsing queue

"ouvtam (Jira)" <[email protected]> Tue, 7 Apr 2026 06:30:00 +0000 (UTC)
Newsgroups gmane.comp.jakarta.james.devel
Message-ID <[email protected]>
    [ https://issues.apache.org/jira/browse/JAMES-4199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18071623#comment-18071623 ] 

ouvtam commented on JAMES-4199:
-------------------------------

I will make an PR and extend MailQueueIterator with AutoClosable and add try-with-resources.

> ActiveMQ: memory leak when browsing queue
> -----------------------------------------
>
>                 Key: JAMES-4199
>                 URL: https://issues.apache.org/jira/browse/JAMES-4199
>             Project: James Server
>          Issue Type: Bug
>          Components: Queue
>    Affects Versions: 3.7.0, 3.8.0, 3.7.1, 3.7.3, 3.7.4, 3.8.1, 3.7.5, 3.8.2, 3.8.3
>            Reporter: ouvtam
>            Priority: Major
>
> We observed memory leaks caused by open QueueBrowser when browsing the queue using WebAdmin with GET /mailQueues/outgoing
> The reason is MailQueueIterator#close is not called, leading to open browsers.



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