Remote Naming thread holding lock causing thread pile up when closing in JBoss EAP 6.4
Issue
- Our application is using remote naming to post JMS messages, when under heavy load with a lot of clients opening & closing remote naming connections, we found a lot of threads blocked such as :
java.lang.Thread.State: BLOCKED
at org.jboss.naming.remote.client.EndpointCache.get(EndpointCache.java:41)
- waiting to lock <1c3bfa61> (a org.jboss.naming.remote.client.EndpointCache) owned by "Thread-1 (HornetQ-client-global-threads-2114338462)"
Environment
Red Hat JBoss Enterprise Application Platform (EAP) 6.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.