Configuring Fuse Message Broker / JBoss A-MQ Memory Limits

Solution Verified - Updated -


  • How can I configure the broker's memory limits
  • How do the memory limits affect Producer Flow Control
  • We have a number of routes that depend on ActiveMQ endpoints. We are finding that when our queues get to around 1,000 messages and we don't have a consumer that we end up with a large number of inflight exchanges and everything stops. As soon as we purge the queue everything recovers. Reading about ActiveMQ and looking at our logs we found what we thought was the reason Producer Flow Control. We have now modified the default activemq.xml configuration in the /etc directory of fuse to
                <policyEntry topic=">" producerFlowControl="false">
                <policyEntry queue=">" producerFlowControl="false">

In the belief that it would stop this from occurring but it doesn't.

  • Are there any known issues with delayed cleanup / memory leaks around using the Camel JMS component and ActiveMQ with the failover transport?We appear to have a situation where ActiveMQBytesMessage instances hang around in the client heap much longer than expected.
    It appears some messages hang for 6-12 hours after the JMS producer has completed
    It does not seem to happen with all messages
    The messages seem to eventually get cleaned up
    The messages vary in size from ~10KB to ~60MB, so sometimes we see OutOfMemoryErrors.
  • continual climb in A-MQ Memory Percent Used. How to diagnose it?


  • Fuse ESB Enterprise
    • 7.1
  • Fuse MQ Enterprise
    • 7.1
  • Fuse Message Broker
    • 5.7
  • Red Hat JBoss A-MQ
    • 6.*
  • Red Hat JBoss Fuse
    • 6.*

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content