The problem with getting single threads here and there is its difficult to pin down the root cause. With the whole jstack file I can probably give you some pointers pretty quickly (or I'll just say if not). A very long time back (in the 1.7.3 era) there was an issue where you can lock a database pool, but that was actually reproducible under small load with small pools. Most of these types of issues (that I see, at least), particularly when you see it in production but not other environments, are bottlenecks communicating to the database or another external system. One thing to remember is that your stateless pool will have a max of 40 instances *per EJB* (not in total). If your database pool is also 40, you'll potentially see issues there.
The first thread you sent is seeing contention issues trying to get a database connection (the pool is exhausted, either leaking connections, or the connections are in use in other threads). The more recent one is showing contention on the stateless EJB pool (it just hasn't timedout waiting yet). We can't learn to much from these, other than the fact that they are waiting. What the other threads are doing will be of interest. I need the full picture otherwise I'm guessing, which won't really help either of us. Jon On Mon, Oct 7, 2019 at 11:39 PM Kalyan <kalyanfrem...@gmail.com> wrote: > Rest of the thread is pretty much as below > > "JungoThreadPool-1-110" #220 prio=5 os_prio=0 tid=0x00007fa5fc119000 > nid=0x31ff waiting on condition [0x00007fa56dd75000] > java.lang.Thread.State: WAITING (parking) > at sun.misc.Unsafe.park(Native Method) > - parking to wait for <0x000000068339f010> (a > java.util.concurrent.SynchronousQueue$TransferStack) > at > java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) > at > > java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:458) > at > > java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:362) > at > java.util.concurrent.SynchronousQueue.take(SynchronousQueue.java:924) > at > > java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) > at > > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > > Locked ownable synchronizers: > - None > > "JungoThreadPool-1-109-T888" #219 prio=5 os_prio=0 tid=0x00007fa5fc117000 > nid=0x31fe waiting on condition [0x00007fa56de74000] > java.lang.Thread.State: TIMED_WAITING (parking) > at sun.misc.Unsafe.park(Native Method) > - parking to wait for <0x000000068022de00> (a > java.util.concurrent.Semaphore$NonfairSync) > at > java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) > at > > java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1037) > at > > java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1328) > at java.util.concurrent.Semaphore.tryAcquire(Semaphore.java:409) > at org.apache.openejb.util.Pool.pop(Pool.java:247) > at org.apache.openejb.util.Pool.pop(Pool.java:228) > at > > org.apache.openejb.core.stateless.StatelessInstanceManager$Data.poolPop(StatelessInstanceManager.java:512) > at > > org.apache.openejb.core.stateless.StatelessInstanceManager.getInstance(StatelessInstanceManager.java:217) > at > > org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:204) > at > > org.apache.openejb.core.ivm.EjbObjectProxyHandler.synchronizedBusinessMethod(EjbObjectProxyHandler.java:265) > at > > org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:260) > at > > org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:89) > at > > org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:349) > at com.sun.proxy.$Proxy74.forwardToServiceBean(Unknown Source) > > > > -- > Sent from: > http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html >