You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@activemq.apache.org by GitBox <gi...@apache.org> on 2019/11/15 21:37:24 UTC

[GitHub] [activemq-artemis] brusdev opened a new pull request #2894: ARTEMIS-2538 Removing all messages from a huge queue causes OOM

brusdev opened a new pull request #2894: ARTEMIS-2538 Removing all messages from a huge queue causes OOM
URL: https://github.com/apache/activemq-artemis/pull/2894
 
 
   The PageSubscriptionImpl.cleanupEntries could be locked by the queue
   depage because they are executed with the same executor and the depage
   could be locked by the iterQueue.
   If PageSubscriptionImpl.cleanupEntries is locked, no one clean up the
   JournalRecord and PagePositionImpl instances created during iterQueue.
   So removing all messages from a huge queue, causes the retention of too
   JournalRecord and PagePositionImpl instances until an OOM.
   To avoid to lock the PageSubscriptionImpl.cleanupEntries the depage is
   executed only if the queue isn't iterating.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services