GitHub user shoukunhuai opened a pull request:
https://github.com/apache/activemq-artemis/pull/1929
ARTEMIS-1728 Reclaim memory when page cursor complete
Free hash set used to hold page position for acks and removed refs.
The two set is cleared, but they still hold a big array.
It is safe to replace the old one with empty set.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/shoukunhuai/activemq-artemis reclaim_hashmap
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/activemq-artemis/pull/1929.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1929
----
commit 6d445c5d6485ed5ca65ea5718905a84ca6d5eb9b
Author: huaishk <shoukunhuai@...>
Date: 2018-03-05T09:32:29Z
ARTEMIS-1728 Reclaim memory when page cursor complete
Free hash set used to hold page position for acks and removed refs.
The two set is cleared, but they still hold a big array.
It is safe to replace the old one with empty set.
----
---