- 执行
jstack -l
查看当前线程的堆栈信息,可以看到线程的堆栈信息,当中有一个部分展示的是:
"nioEventLoopGroup-8-4" #694 prio=10 os_prio=0 cpu=13597.70ms elapsed=128507.28s tid=0x00007f88e4012000 nid=0x2c4 runnable [0x00007f88bb3f4000]
java.lang.Thread.State: RUNNABLE
at sun.nio.ch.EPoll.wait(java.base@11.0.20/Native Method)
at sun.nio.ch.EPollSelectorImpl.doSelect(java.base@11.0.20/EPollSelectorImpl.java:120)
at sun.nio.ch.SelectorImpl.lockAndDoSelect(java.base@11.0.20/SelectorImpl.java:124)
- locked <0x00000000818c5678> (a io.netty.channel.nio.SelectedSelectionKeySet)
- locked <0x00000000818c5578> (a sun.nio.ch.EPollSelectorImpl)
at sun.nio.ch.SelectorImpl.select(java.base@11.0.20/SelectorImpl.java:141)
at io.netty.channel.nio.SelectedSelectionKeySetSelector.select(SelectedSelectionKeySetSelector.java:68)
at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:879)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:526)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(java.base@11.0.20/Thread.java:829)
Locked ownable synchronizers:
- None
...大约 4 分钟