Heath Kesler created AMQ-7126:
---------------------------------
Summary: Prevent OOM when recovering KahaDB and memory space is
insufficient to load full page
Key: AMQ-7126
URL: https://issues.apache.org/jira/browse/AMQ-7126
Project: ActiveMQ
Issue Type: Bug
Affects Versions: 5.15.8
Reporter: Heath Kesler
We have some brokers that are having OOM issues (on reboot) after having
accepted messages without OOM. We investigated the problem and diagnosed that
this happens when we attempt to load a full page during recovery.
If we update KahaDBStore recoverNextMessage to use the following:
"if (counter >= maxReturned || !listener.hasSpace())"
To check if we have enough space to load the next message, than our OOM is
averted.
AMQ-4495 had the above change that was backed out due to performance concerns,
our testing does not show us a degradation - perhaps we could provide an
optional parameter to use this code?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)