dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

Thread pool is EXHAUSTED

Open feelwing1314 opened this issue 6 years ago • 1 comments

Environment

  • Dubbo version: 2.5.3
  • Operating System version: centos6.8
  • Java version: 7u79
Thread pool is EXHAUSTED! Thread Name: DubboServerHandler-x.x.x.x:20359, Pool Size: 200 (active: 198, core: 200, max: 200, largest: 200), Task: 48143503 (completed: 48143306), Executor status:(isShutdown:false, isTerminated:false, isTerminating:false), in dubbo://10.102.27.210:20359!, dubbo version: 2.5.3, current host: x.x.x.x

i dump the thread stack,and find there are 170 thread like this:

DubboServerHandler-x.x.x.x:49076-thread-178
priority:10 - threadId:0x00007f1b8c054000 - nativeId:0x57e9 - nativeId (decimal):22505 - state:WAITING
stackTrace:
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x0000000702e46e88> (a java.util.concurrent.SynchronousQueue$TransferStack)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:458)
at java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:359)
at java.util.concurrent.SynchronousQueue.take(SynchronousQueue.java:925)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None

what is the most cause of these 170 WAITING thread ?

attachment:the thread stack info : https://fastthread.io/same-state-threads.jsp?state=threadGroup&threadGroup=2&dumpId=1

feelwing1314 avatar Jan 09 '20 14:01 feelwing1314

This problem means that the server is already very busy. Perhaps you should check why the code is executing slowly ? refer: https://www.cnblogs.com/brant/p/11434864.html https://www.cnblogs.com/tiancai/p/9252780.html

zonghaishang avatar Jan 10 '20 02:01 zonghaishang