服务环境:jfinal-undertow1.6 系统中有个交流模块使用了websocket 实现在线聊天
近日突然出现服务登录不上,查看日志发现如下报错:
[ERROR]-[Thread: XNIO-1 I/O-3]-[org.xnio.ChannelListeners.invokeChannelListener()]: XNIO001007: A channel event listener threw an exception
java.util.concurrent.RejectedExecutionException: XNIO007007: Thread is terminating
at org.xnio.nio.WorkerThread.execute(WorkerThread.java:590)
at io.undertow.websockets.jsr.UndertowSession$3.handleEvent(UndertowSession.java:396)
at io.undertow.websockets.jsr.UndertowSession$3.handleEvent(UndertowSession.java:388)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at io.undertow.server.protocol.framed.AbstractFramedChannel$FrameCloseListener.handleEvent(AbstractFramedChannel.java:1061)
at io.undertow.server.protocol.framed.AbstractFramedChannel$FrameCloseListener.handleEvent(AbstractFramedChannel.java:975)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.conduits.WriteReadyHandler$ChannelListenerHandler.terminated(WriteReadyHandler.java:70)
at org.xnio.nio.NioSocketConduit.writeTerminated(NioSocketConduit.java:234)
at org.xnio.nio.NioSocketConduit.terminateWrites(NioSocketConduit.java:223)
at org.xnio.nio.NioSocketConduit.truncateWrites(NioSocketConduit.java:228)
at io.undertow.conduits.IdleTimeoutConduit.truncateWrites(IdleTimeoutConduit.java:387)
at org.xnio.conduits.ConduitStreamSinkChannel.close(ConduitStreamSinkChannel.java:186)
at org.xnio.IoUtils.safeClose(IoUtils.java:134)
at org.xnio.conduits.WriteReadyHandler$ChannelListenerHandler.forceTermination(WriteReadyHandler.java:57)
at org.xnio.nio.NioSocketConduit.forceTermination(NioSocketConduit.java:107)
at org.xnio.nio.WorkerThread.run(WorkerThread.java:494)
没看出来所以然,系统中也再无更多其他日志
更换端口 更换系统部署路径 卸载杀毒软件 现象依旧
请教大家有无遇到类似问题,可能是哪方面原因?
ps:现阶段是将jfinal-undertow 升级为1.7
暂时未出现突然关闭的问题。原问题为找到根源略感不快,请各位大神指点一二。
因为较高的 jfinal undertow 对于线程数量有更智能的配置
jfinal undertow 是不挑 jfinal 版本的,可以随时升级到最新版本, 2.0 版本我自己用了很久了,十分好用