activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikolay Martynov (JIRA)" <>
Subject [jira] [Commented] (AMQ-4971) OOM in DemandForwardingBridge
Date Fri, 17 Jan 2014 10:11:21 GMT


Nikolay Martynov commented on AMQ-4971:

Prefetch was already set to 1 for all destinations via per-destination policy. However, at
appears that this has no effect over bridge. Reducing prefetchSize from default 1000 to 1
directly on networkConnector fixes the problem with heap exhaustion. However, one may assume
that amount of prefetched data should also be limited by resource usage constraints while
it doesn't seem to be so.

                <amq:policyEntry topic=">" producerFlowControl="true" memoryLimit="30mb"
topicPrefetch="1" blockedProducerWarningInterval="30">
                        <amq:constantPendingMessageLimitStrategy limit="-1"/>
                <amq:policyEntry queue=">" producerFlowControl="true" memoryLimit="30mb"
queuePrefetch="1" blockedProducerWarningInterval="30">
        <amq:systemUsage sendFailIfNoSpaceAfterTimeout="60000">
                <amq:memoryUsage limit="350 mb" />
                <amq:tempUsage limit="300 mb" />

> OOM in DemandForwardingBridge
> -----------------------------
>                 Key: AMQ-4971
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.9.0
>            Reporter: Yuriy Sidelnikov
>              Labels: features
>         Attachments: AMQ-4971.patch
> DemandForwardingBridge sends messages to the other broker and asynchronously waits for
ACKs keeping message bodies in heap. Amount of un-ACK-ed messages kept in heap is not limited.
If local producer is fast then whole heap will be consumed by messages waiting to be ACK-ed
by other broker.
> Possible option to fix the issue:
> Don't wait for ACK from other broker when forwarding the message if some threshold of
un-ACK-ed messages is reached.

This message was sent by Atlassian JIRA

View raw message