You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2022/01/12 00:38:00 UTC

[jira] [Resolved] (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 ]

Justin Bertram resolved ARTEMIS-3636.
-------------------------------------
    Resolution: Fixed

> 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
>    Affects Versions: 2.19.0
>            Reporter: Fabio Nascimento Brandão
>            Assignee: Justin Bertram
>            Priority: Major
>             Fix For: 2.21.0
>
>         Attachments: ClientConsumerImplTest.java, production_gc.png, production_heap_dump_wildfly.png
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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)