You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/01/03 19:12:00 UTC

[jira] [Commented] (AMQ-7126) Prevent OOM when recovering KahaDB and memory space is insufficient to load full page

    [ https://issues.apache.org/jira/browse/AMQ-7126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16733396#comment-16733396 ] 

ASF subversion and git services commented on AMQ-7126:
------------------------------------------------------

Commit 2ed15d563c4e7c259deb0748e403030957a6dde3 in activemq's branch refs/heads/activemq-5.15.x from Jamie Mark Goodyear
[ https://git-wip-us.apache.org/repos/asf?p=activemq.git;h=2ed15d5 ]

[AMQ-7126] Prevent OOM when recovering KahaDB and memory space is insufficient to load full page


> 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
>            Priority: Critical
>         Attachments: OOM.patch, amq7126.patch
>
>
> 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)