[
https://issues.apache.org/jira/browse/ARTEMIS-3636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robbie Gemmell updated ARTEMIS-3636:
------------------------------------
Description:
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/1c9516db6aef8d853c7afd4fb01b7cb996dc23e0/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".
was:
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".
> 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/1c9516db6aef8d853c7afd4fb01b7cb996dc23e0/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)