一、报错日志
[redisson-netty-2-9] o.r.client.handler.ErrorsLoggingHandler : Exception occured. Channel: [id: 0x9601b67d, L:/127.0.0.1:57604 - R:127.0.0.1/127.0.0.1:6379]
java.io.IOException: 连接被对方重设
at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
at sun.nio.ch.IOUtil.read(IOUtil.java:192)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:377)
at io.netty.buffer.PooledByteBuf.setBytes(PooledByteBuf.java:253)
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1132)
at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:350)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:151)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:719)
at io.netty.channel.nio.
二、解决办法
application.yml添加配置
spring
redis:
lettuce:
pool:
max-idle: 30
min-idle: 10
max-active: 30
max-wait: 10000
三、参考连接