Does your thread dump identify what thread is holding that lock, and what its stack trace is?
5.9.1 is pretty old; have you searched JIRA to see if this is a known issue that's been resolved in a later version? Tim On Tue, May 15, 2018, 10:33 AM [email protected] <[email protected]> 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 >
