activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: Active MQ Threads are hanging frequently
Date Mon, 03 Jun 2013 14:09:10 GMT
TMP storage is where the broker spools non-persistent messages to disk.
Looks like you're blocked on producer flow control of the temp usage limits.

http://activemq.apache.org/producer-flow-control.html


On Mon, Jun 3, 2013 at 4:58 AM, satish <sarajan@cisco.com> wrote:

>
>
> We are using Active 5.6.0.jar.We are seeing slowness due to Active MQ
> threads.While analyzing the log i could find following message in
> activemq.log
>
> INFO  TopicSubscription              - TopicSubscription:
> consumer=ID:SS-JHD-NMSMGT-1-38685-1364975764803-405:1:1:1, destinations=15,
> dispatched=32767, delivered=96754, matched=42512, discarded=0: Pending
> message cursor
> [org.apache.activemq.broker.region.cursors.FilePendingMessageCursor@bdc23b
> ]
> is full, temp usage (106%) or memory usage (0%) limit reached, blocking
> message add() pending the release of resources.
>
>
> The *tmp_storage* size is some what around 110 MB.
>
> Activemq.xml configuration is
>
>
> <memoryUsage>
>   <memoryUsage limit="64 mb" />
>   </memoryUsage>
> <storeUsage>
>   <storeUsage limit="1 gb" name="foo" />
>   </storeUsage>
> <tempUsage>
>   <tempUsage limit="100 mb" /> //How to  set this parameter.Is this based
> on
> JVM or based on the disk space
>   </tempUsage>
>   </systemUsage
>
> When we took the thread dump we saw threads were hanging on Active mq
> thread.
>
> Stack Trace
> ==========
>
> &quot;Thread-11&quot; daemon prio=6 tid=0x4b5ae800 nid=0x3558 waiting on
> condition [0x4df6f000]
>    java.lang.Thread.State: WAITING (parking)
>         at sun.misc.Unsafe.park(Native Method)
>         - parking to wait for  &lt;0x0b0f1ba0> (a
> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
>         at
> java.util.concurrent.locks.LockSupport.park(LockSupport.java:156)
>         at
>
> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)
>         at
> java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:315)
>         at
>
> org.apache.activemq.transport.FutureResponse.getResult(FutureResponse.java:40)
>         at
>
> org.apache.activemq.transport.ResponseCorrelator.request(ResponseCorrelator.java:87)
>         at
>
> org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1351)
>         at
>
> org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1290)
>         at
> org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:1785)
>         - locked <0x08bd2c08> (a java.lang.Object)
>         at
>
> org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:277)
>         at
>
> org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:212)
>         at
>
> org.apache.activemq.ActiveMQMessageProducerSupport.send(ActiveMQMessageProducerSupport.java:241)
>         at
>
> org.apache.activemq.ActiveMQTopicPublisher.publish(ActiveMQTopicPublisher.java:123)
>
>
> Please some one help us on this.
>
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Active-MQ-Threads-are-hanging-frequently-tp4667739.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message