[
https://issues.apache.org/jira/browse/QPID-6951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Keith Wall updated QPID-6951:
-----------------------------
Description:
If a JMS user continually closes consumers on the same transactional session, a
memory leak occurs at the following location. The leak remains until the
Session is closed ({{Session#close()}}) or the session is rolled-back.
({{Session#rollback()}}(.
{{AMQSession.deregisterConsumer()}} contains the following code:
{code}
if (_transacted)
{
_removedConsumers.add(consumer);
}
{code}
However, the {{_removedConsumers}} list is only cleaned up on rollback and
nowhere else.
This leak appears to be longstanding. It looks like it was added at M3
(QPID-832).
was:
If a JMS user continually closes consumers on the same transactional session, a
memory leak occurs at the following location. The leak remains until the
Session is closed.
{{AMQSession.deregisterConsumer()}} contains the following code:
{code}
if (_transacted)
{
_removedConsumers.add(consumer);
}
{code}
However, the {{_removedConsumers}} list is only cleaned up on rollback and
nowhere else.
> [Java Client] AMQSession.deregisterConsumer() leaks Memory
> ----------------------------------------------------------
>
> Key: QPID-6951
> URL: https://issues.apache.org/jira/browse/QPID-6951
> Project: Qpid
> Issue Type: Bug
> Components: Java Client
> Affects Versions: 0.18, 0.22, 0.32, qpid-java-6.0
> Reporter: Lorenz Quack
> Assignee: Keith Wall
> Attachments: QPID-6951-fix.diff
>
>
> If a JMS user continually closes consumers on the same transactional session,
> a memory leak occurs at the following location. The leak remains until the
> Session is closed ({{Session#close()}}) or the session is rolled-back.
> ({{Session#rollback()}}(.
> {{AMQSession.deregisterConsumer()}} contains the following code:
> {code}
> if (_transacted)
> {
> _removedConsumers.add(consumer);
> }
> {code}
> However, the {{_removedConsumers}} list is only cleaned up on rollback and
> nowhere else.
> This leak appears to be longstanding. It looks like it was added at M3
> (QPID-832).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]