Unexpected high number of threads named "ActiveMQ Connection Executor" in JBoss EAP when using the AMQ resource adapter

Solution Verified - Updated -

Issue

We spotted an usual high number of threads named "ActiveMQ Connection Executor: unconnected" in the thread dump of our JBoss EAP server. There are hundreds of these threads and they don't seem to get closed.

A typical call stack for these threads reads

"ActiveMQ Connection Executor: unconnected" #353917496 daemon prio=5 os_prio=64 tid=0x0000000008d50800 nid=0x15185a6d waiting on condition [0xffff80ff41007000]
   java.lang.Thread.State: WAITING (parking)
        at sun.misc.Unsafe.park(Native Method)
        - parking to wait for  <0x0000000708d5d3d8> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
        at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
        at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

Environment

  • JBoss AMQ
    • 6.2.1
    • 6.3
  • JBoss Enterprise Application Server (EAP) 6
  • AMQ JCA resource adapter deployed to JBoss EAP 6.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content