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: [email protected] With regards, Apache Git Services
