Our Java Application running with WildFly 8.2.1 and Java 1.8_92 hangs completely on huge load. A threaddump at this situation shows that a lot of threads are in state WAITING at monitor 0x00000005cc562228:
"default task-100" #825 prio=5 os_prio=0 tid=0x00000000033a2800 nid=0x49bd in Object.wait() [0x00007f238cb98000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1465)
at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:644)
- locked <0x00000005cc562228> (a com.mchange.v2.resourcepool.BasicResourcePool)
at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:554)
.......
How can we find the owner of this monitor lock because we assume this thread to be the reason for some connection leak? We assumed this monitor lock to appear in another context but this is not the case.
Or may be there is any other hint for the deadlock situation? Any help is very appreciated because we are struggling quite a long time with this problem.