Usage Manager memory limit (104857600) reached for a topic

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Usage Manager memory limit (104857600) reached for a topic

Evan
Hi,

I got following message:

INFO   | jvm 1    | 2014/05/13 07:02:39 |  INFO | TopicSubscription: consumer=ID:JSANDS-PC3-53028-1399897473907-0:0:1:1, destinations=1, dispatched=32766, delivered=0, matched=30386, discarded=0: Pending message cursor [org.apache.activemq.broker.region.cursors.VMPendingMessageCursor@e00788] is full, temp usage (0%) or memory usage (100%) limit reached, blocking message add() pending the release of resources.
INFO   | jvm 1    | 2014/05/13 07:02:39 |  INFO | Usage Manager memory limit (104857600) reached for topic://BROADCAST_MESSAGING_TOPICFTPCAPP01. Producers will be throttled to the rate at which messages are removed from this destination to prevent flooding it. See http://activemq.apache.org/producer-flow-control.html for more info
INFO   | jvm 1    | 2014/05/13 07:02:40 |  INFO | Usage Manager memory limit reached. Stopping producer (ID:FTPCSOS01-51636-1399733296121-0:0:1:1) to prevent flooding topic://BROADCAST_MESSAGING_TOPICFTPCAPP01. See http://activemq.apache.org/producer-flow-control.html for more info (blocking for: 1s)
INFO   | jvm 1    | 2014/05/13 07:02:41 |  INFO | Usage Manager memory limit reached. Stopping producer (ID:PTS10-60482-1399733597139-0:0:1:1) to prevent flooding topic://BROADCAST_MESSAGING_TOPICFTPCAPP01. See http://activemq.apache.org/producer-flow-control.html for more info (blocking for: 1s)

Following are my configuration:

           
        <destinationPolicy>
            <policyMap>
              <policyEntries>
                <policyEntry topic=">" producerFlowControl="true" memoryLimit="1mb">
                  <pendingSubscriberPolicy>
                    <vmCursor />
                  </pendingSubscriberPolicy>
                </policyEntry>
                <policyEntry queue=">" producerFlowControl="true" memoryLimit="1mb">
                 
                </policyEntry>
              </policyEntries>
            </policyMap>
        </destinationPolicy> 

Someone can help me to explain why it happens?

Thanks.

Reply | Threaded
Open this post in threaded view
|

Re: Usage Manager memory limit (104857600) reached for a topic

ceposta
Your consumers are slow and you're trying to store everything in memory.

Check here for more info:
http://activemq.apache.org/producer-flow-control.html

I've written in depth about what the memory management piece do here:

http://www.christianposta.com/blog/?p=273


On Tue, Jun 3, 2014 at 1:10 AM, Evan <[hidden email]> wrote:

> Hi,
>
> I got following message:
>
> INFO   | jvm 1    | 2014/05/13 07:02:39 |  INFO | TopicSubscription:
> consumer=ID:JSANDS-PC3-53028-1399897473907-0:0:1:1, destinations=1,
> dispatched=32766, delivered=0, matched=30386, discarded=0: Pending message
> cursor
> [org.apache.activemq.broker.region.cursors.VMPendingMessageCursor@e00788]
> is
> full, temp usage (0%) or memory usage (100%) limit reached, blocking
> message
> add() pending the release of resources.
> INFO   | jvm 1    | 2014/05/13 07:02:39 |  INFO | Usage Manager memory
> limit
> (104857600) reached for topic://BROADCAST_MESSAGING_TOPICFTPCAPP01.
> Producers will be throttled to the rate at which messages are removed from
> this destination to prevent flooding it. See
> http://activemq.apache.org/producer-flow-control.html for more info
> INFO   | jvm 1    | 2014/05/13 07:02:40 |  INFO | Usage Manager memory
> limit
> reached. Stopping producer (ID:FTPCSOS01-51636-1399733296121-0:0:1:1) to
> prevent flooding topic://BROADCAST_MESSAGING_TOPICFTPCAPP01. See
> http://activemq.apache.org/producer-flow-control.html for more info
> (blocking for: 1s)
> INFO   | jvm 1    | 2014/05/13 07:02:41 |  INFO | Usage Manager memory
> limit
> reached. Stopping producer (ID:PTS10-60482-1399733597139-0:0:1:1) to
> prevent
> flooding topic://BROADCAST_MESSAGING_TOPICFTPCAPP01. See
> http://activemq.apache.org/producer-flow-control.html for more info
> (blocking for: 1s)
>
> Following are my configuration:
>
>
>         <destinationPolicy>
>             <policyMap>
>               <policyEntries>
>                 <policyEntry topic=">" producerFlowControl="true"
> memoryLimit="1mb">
>                   <pendingSubscriberPolicy>
>                     <vmCursor />
>                   </pendingSubscriberPolicy>
>                 </policyEntry>
>                 <policyEntry queue=">" producerFlowControl="true"
> memoryLimit="1mb">
>
>                 </policyEntry>
>               </policyEntries>
>             </policyMap>
>         </destinationPolicy>
>
> Someone can help me to explain why it happens?
>
> Thanks.
>
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Usage-Manager-memory-limit-104857600-reached-for-a-topic-tp4681594.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



--
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta
Reply | Threaded
Open this post in threaded view
|

Re: Usage Manager memory limit (104857600) reached for a topic

Evan
Hi,

Is that an issue?
And what is the impact about that?

Could you help me?

Thanks.