[
https://issues.apache.org/jira/browse/QPID-6951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15066591#comment-15066591
]
ASF subversion and git services commented on QPID-6951:
-------------------------------------------------------
Commit 1721198 from [~k-wall] in branch 'java/trunk'
[ https://svn.apache.org/r1721198 ]
QPID-6951: Revert change to BasicMessageConsumer so that prefetched messages
are not released if a session is already closing.
* Added test to ensure that previously received messages are committed even if
the consumer is closed.
> [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]