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

Jamie goodyear commented on AMQ-7126:
-------------------------------------

Performance did indeed appear to be an issue so submitted a change that does 
not affect performance

> 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
>            Assignee: Jamie goodyear
>            Priority: Critical
>             Fix For: 5.16.0, 5.15.9
>
>         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)

Reply via email to