osdir.com

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Active MQ thread getting blocked.


This is the stack trace you see when using a failover URI and a connection has yet to be established. The createSession call must block here as there isn't a broker to service any requests

On 05/15/2018 11:58 AM, nik125@xxxxxxxxx wrote:
HI,


I'm looking to identify the following case where active MQ thread is getting
blocked.
Is anyone aware of this problem with the API.
I'm using version 5.9.1

pool-8-thread-3 - priority:5 - threadId:0x00007f0c100a7380 - nativeId:0x1476
- state:BLOCKED
stackTrace:
java.lang.Thread.State: BLOCKED (on object monitor)
at
org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1506)
- waiting to lock <0x0000000396800d00> (a java.lang.Object)
at
org.apache.activemq.ActiveMQConnection.createSession(ActiveMQConnection.java:327)
at
org.apache.activemq.jms.pool.ConnectionPool.makeSession(ConnectionPool.java:104)
at
org.apache.activemq.jms.pool.ConnectionPool$1.makeObject(ConnectionPool.java:81)
at
org.apache.activemq.jms.pool.ConnectionPool$1.makeObject(ConnectionPool.java:66)
at
org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1220)
at
org.apache.activemq.jms.pool.ConnectionPool.createSession(ConnectionPool.java:133)
at
org.apache.activemq.jms.pool.PooledConnection.createSession(PooledConnection.java:167)
at
org.springframework.jms.support.JmsAccessor.createSession(JmsAccessor.java:196)
at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:457)
at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:543)
at
org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:620)




-----
Nikhil
--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html


--
Tim Bish
twitter: @tabish121
blog: http://timbish.blogspot.com/