Philip Harvey created QPID-3979:
-----------------------------------
Summary: Last value queue memory leak
Key: QPID-3979
URL: https://issues.apache.org/jira/browse/QPID-3979
Project: Qpid
Issue Type: Bug
Components: Java Broker
Affects Versions: 0.14, 0.12, 0.16, 0.17
Reporter: Philip Harvey
I have observed a memory leak when using a last value queue.
Upon investigation, it seems that this is due to a bug in the management of
ConflationQueueList._latestValuesMap. This map is keyed by the configured
conflation key. Whilst entries are correctly replaced when new messages arrive,
they are never *deleted*. Therefore, an entry remains in the map for every key
value that has ever existed.
The problem is compounded by the fact that the retained ConflationQueueEntry's
can reference other entries - that is how the linked list behaviour of the
queue list is achieved. Therefore, retaining a single entry in the
aforementioned map can cause a large number of other entries to remain in
memory.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]