You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "nik125@gmail.com" <ni...@gmail.com> on 2018/05/15 15:58:04 UTC

Active MQ thread getting blocked.

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

Re: Active MQ thread getting blocked.

Posted by Timothy Bish <ta...@gmail.com>.
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@gmail.com 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/


Re: Active MQ thread getting blocked.

Posted by Tim Bain <tb...@alumni.duke.edu>.
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 nik125@gmail.com <ni...@gmail.com> 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
>