You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Fabio Nascimento Brandão (Jira)" <ji...@apache.org> on 2022/01/11 20:32:00 UTC

[jira] [Updated] (ARTEMIS-3636) LinkedListImpl$Iterator leak on mesage consume error

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

Fabio Nascimento Brandão updated ARTEMIS-3636:
----------------------------------------------
    Attachment: production_heap_dump_wildfly.png

> LinkedListImpl$Iterator leak on mesage consume error
> ----------------------------------------------------
>
>                 Key: ARTEMIS-3636
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3636
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: ActiveMQ-Artemis-Native
>    Affects Versions: 2.19.0
>            Reporter: Fabio Nascimento Brandão
>            Assignee: Clebert Suconic
>            Priority: Major
>         Attachments: ClientConsumerImplTest.java, production_heap_dump_wildfly.png
>
>
> There is a leak of org.apache.activemq.artemis.utils.collections.LinkedListIterator when a message is marked for rollback on consume.
> [https://github.com/apache/activemq-artemis/blob/main/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientConsumerImpl.java#L713]
> The iterator used at ClientConsumerImpl:713 is never closed causing the leak.
>  
> I wrote a "unit test" that simulates this condition. Start the test with Xmx256m and after some seconds the program terminates with "OutOfMemoryError".



--
This message was sent by Atlassian Jira
(v8.20.1#820001)