activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From TMcCabe <>
Subject ActiveMQ 5.3.0 cpu usage goes to zero
Date Fri, 26 Mar 2010 20:16:33 GMT

Config file:
    <broker xmlns=""
brokerName="localhost" dataDirectory="${activemq.base}/data"
            The managementContext is used to configure how ActiveMQ is
exposed in 
            JMX. By default, ActiveMQ uses the MBean server that is started
            the JVM. For more information, see: 
            <managementContext createConnector="false"/>

            Configure message persistence for the broker. The default
            mechanism is the KahaDB store (identified by the kahaDB tag). 
            For more information, see: 
directory="${activemq.base}/data/activemq-data" maxFileLength="64mb"/>
            <kahaDB directory="${activemq.base}/data/kahadb"
indexWriteBatchSize="10000" indexCacheSize="1000"/>
            indexWriteBatchSize="10000" indexCacheSize="1000"
enableIndexWriteAsync="true" journalMaxFileLength="64mb"
directory="${activemq.base}/data/activemq-data" syncOnWrite="false" />
			For better performances use VM cursor and small memory limit.
			For more information, see:
            Also, if your producer is "hanging", it's probably due to
producer flow control.
            For more information, see:

                <policyEntry topic=">" producerFlowControl="false"
                <policyEntry queue=">" producerFlowControl="false"
memoryLimit="1mb" >
<!--                  <pendingMessageLimitStrategy>
                 <!-- Use VM cursor for better latency
                       For more information, see:
            The systemUsage controls the maximum amount of space the broker
            use before slowing down producers. For more information, see:
                    <tempUsage limit="256 mb"/>
            <systemUsage sendFailIfNoSpace="true">
                    <memoryUsage limit="256 mb"/>
                    <storeUsage limit="60 gb" name="store"/>
                    <tempUsage limit="256 mb"/>
            The transport connectors expose ActiveMQ over a given protocol
            clients and other brokers. For more information, see: 
            <transportConnector name="openwire"


I have 48 Q's with 64 producers with a consumer for each Q. Each producer
sending a byte message (persistent) of approx 7K to each of the 48 Q's every
1.5 seconds. 

I see the producer hang and the consumer hang as AMQ CPU usage drops to 0
after 4 minutes. Using jconsole to monitor AMQ performance.

Any help most appreciated as to what may be happening.
Am I correct to assume that AMQ cannot handle the load?
Machine (RHEL v5) 2Core CPU, 4G RAM.

Look around the forums for similar problems and tried to adjust config
Able to get it consistent if using the default store but with one horrible
side effect in that my producer may not be able to send a message for 2 to 3
seconds (must send every 1.5)


View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message