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

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

    [ https://issues.apache.org/jira/browse/ARTEMIS-3636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17474531#comment-17474531 ] 

Clebert Suconic edited comment on ARTEMIS-3636 at 1/12/22, 1:40 PM:
--------------------------------------------------------------------

[~fabio.nb] even earlier... I think this bug is all the way back to HornetQ 1.0 :)


was (Author: clebertsuconic):
[~fabio.nb]even earlier... I think this bug is al the way back to HornetQ 1.0 :)

> 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)