欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Unexpected exception in the selector loop., dubbo version: xxx, current host: 127.0.0.1 报错

程序员文章站 2022-05-07 14:24:01
...

记录一个Dubbo报错,这是在生产上运行了一段时间,莫名出现的错误,最后被同事解决了,在此做一下记录

2018-08-26 08:10:01125 WARN  [New I/O server worker #1-4] [NioWorker]  [DUBBO] Unexpected exception in the selector loop., dubbo version: 2.5.3, current host: 127.0.0.1
java.nio.channels.ClosedSelectorException
        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:83)
        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
        at org.jboss.netty.channel.socket.nio.SelectorUtil.select(SelectorUtil.java:38)
        at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:163)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
2018-08-26 08:10:02125 WARN  [New I/O server worker #1-4] [NioWorker]  [DUBBO] Unexpected exception in the selector loop., dubbo version: 2.5.3, current host: 127.0.0.1
java.nio.channels.ClosedSelectorException
        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:83)
        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
        at org.jboss.netty.channel.socket.nio.SelectorUtil.select(SelectorUtil.java:38)
        at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:163)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
2018-08-26 08:10:03125 WARN  [New I/O server worker #1-4] [NioWorker]  [DUBBO] Unexpected exception in the selector loop., dubbo version: 2.5.3, current host: 127.0.0.1
java.nio.channels.ClosedSelectorException
        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:83)
        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
        at org.jboss.netty.channel.socket.nio.SelectorUtil.select(SelectorUtil.java:38)
        at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:163)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
@

这种问题通常是文件被占用, dubbo里对应的是当前用户下的.dubbo文件,可以lsof grep 文件 找到进程 杀掉重启就ok了。
报错地方:
Unexpected exception in the selector loop., dubbo version: xxx, current host: 127.0.0.1 报错
使用 kill -15 无法杀死进程,所以这里要使用kill -9。

相关标签: dubbo