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 <[email protected]> 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 > ========== > > "Thread-11" 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 <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
