生菜io.netty.channel.unix.Errors $ NativeIoException:writevAddresses(..)失败:对等重置连接

时间:2018-12-07 07:14:12

标签: spring-boot docker netty lettuce

这几天,我遇到了一个问题,我用生菜作为我的应用程序redis客户端,但是我发现情况很糟糕,我的服务器上运行着4个docker,但是有2个使用生菜offen的docker重新启动,大约每30个重启一次分钟,我不确定是否是由于使用生菜引起的,但是使用生菜的码头工人将重新启动,这是错误消息:

[03:13:00:953] [WARN] -io.lettuce.core.protocol.DefaultEndpoint -  - 
Unexpected exception during request: 
io.netty.channel.unix.Errors$NativeIoException: writevAddresses(..) failed: 
Connection reset by peer
io.netty.channel.unix.Errors$NativeIoException: writevAddresses(..) failed: 
Connection reset by peer
    at io.netty.channel.unix.Errors.newIOException(Errors.java:122) ~[netty- 
transport-native-unix-common-4.1.27.Final.jar!/:4.1.27.Final]
    at io.netty.channel.unix.Errors.ioResult(Errors.java:146) ~[netty- 
transport-native-unix-common-4.1.27.Final.jar!/:4.1.27.Final]
    at     io.netty.channel.unix.FileDescriptor.writevAddresses(FileDescriptor.java:155) ~[netty-transport-native-unix-common-4.1.27.Final.jar!/:4.1.27.Final]
    at io.netty.channel.epoll.AbstractEpollStreamChannel.writeBytesMultiple(AbstractEpollStreamChannel.java:316) ~[netty-transport-native-epoll-4.1.27.Final.jar!/:4.1.27.Final]
    at io.netty.channel.epoll.AbstractEpollStreamChannel.doWriteMultiple(AbstractEpollStreamChannel.java:523) ~[netty-transport-native-epoll-4.1.27.Final.jar!/:4.1.27.Final]
    at io.netty.channel.epoll.AbstractEpollStreamChannel.doWrite(AbstractEpollStreamChannel.java:434) ~[netty-transport-native-epoll-4.1.27.Final.jar!/:4.1.27.Final]
    at io.netty.channel.AbstractChannel$AbstractUnsafe.flush0(AbstractChannel.java:934) ~[netty-transport-4.1.27.Final.jar!/:4.1.27.Final]
    at io.netty.channel.epoll.AbstractEpollChannel$AbstractEpollUnsafe.epollOutReady(AbstractEpollChannel.java:525) ~[netty-transport-native-epoll-4.1.27.Final.jar!/:4.1.27.Final]
    at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:407) ~[netty-transport-native-epoll-4.1.27.Final.jar!/:4.1.27.Final]
    at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:317) ~[netty-transport-native-epoll-4.1.27.Final.jar!/:4.1.27.Final]
    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884) ~[netty-common-4.1.27.Final.jar!/:4.1.27.Final]
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.27.Final.jar!/:4.1.27.Final]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_161]

0 个答案:

没有答案