alibaba / jstorm

Enterprise Stream Process Engine
http://jstorm.io
Apache License 2.0
3.92k stars 1.8k forks source link

很多线程处于lock状态 #552

Closed dengbo closed 7 years ago

dengbo commented 7 years ago

在jstack里看到好多这种parking的线程,这是任务出了啥问题吗? "Handle:193-TransferRunnable-0" #65 prio=5 os_prio=0 tid=0x00007fe510006000 nid=0x31424 runnable [0x00007fe571ee1000] java.lang.Thread.State: TIMED_WAITING (parking) at sun.misc.Unsafe.park(Native Method)

"KafkaSpout:353-TransferRunnable-0" #64 prio=5 os_prio=0 tid=0x00007fe504003800 nid=0x31423 runnable [0x00007fe571fe2000] java.lang.Thread.State: TIMED_WAITING (parking) at sun.misc.Unsafe.park(Native Method)

"pool-7-thread-5" #59 prio=5 os_prio=0 tid=0x00007fe55c007800 nid=0x313b6 waiting on condition [0x00007fe5724e7000] java.lang.Thread.State: TIMED_WAITING (parking) at sun.misc.Unsafe.park(Native Method)

longdafeng commented 7 years ago

这是正常的 当没数据时, disrupt 在等待数据或其他blocking queue在等待数据, 就是这个状态