io.lettuce.core.protocol.ConnectionWatchdog - Reconnecting, last destination was ***


一、问题

redis起来后一直有重连的日志,如下图:

二、分析

参考lettuce-core的github上Issues解答https://github.com/lettuce-io/lettuce-core/issues/861

可知,这是lettuce-core的实现里,有类似心跳机制的保持长连接方式,不过心跳机制是不停的来回发心跳包直到连接不可用再去被动重新连接,而lettuce的方案是将连接池里处于空闲(idle)状态的client每隔一段时间就主动断开,然后再重新连接

三、解决

其实这个不是错误,只是一个INFO级别的日志。不想看到的话将这个日志级别调高一点就好了。

例如:

    <logger name="io.lettuce.core.protocol" level="ERROR">
        <appender-ref ref="ERROR_FILE" />
    </logger>


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



猜您在找 redis心跳日志【i.l.core.protocol.ConnectionWatchdog : Reconnecting, last destination was】 【Azure Spring Cloud】Java Spring Cloud 应用部署到Azure上后,发现大量的 java.lang.NullPointerException: null at io.lettuce.core.protocol.CommandHandler.writeSingleCommand(CommandHandler.java:426) at ... 异常 springboot2集成redis5报错:io.lettuce.core.RedisException: io.lettuce.core.RedisConnectionException: DENIED Redis is running in protected 解决redis 报错:Could not get a resource from the pool; nested exception is io.lettuce.core.RedisConnectionException Redis:nested exception is io.lettuce.core.RedisException: java.io.IOException: 远程主机强迫关闭了一个现有的连接 Redis报错: Caused by: io.lettuce.core.RedisConnectionException: DENIED Redis is running in protected mode because protected mode is enabled, no bind address was specified, ... 解决springboot连接Redis出现 Redis exception; nested exception is io.lettuce.core.RedisException: java.io.IOException: 远程主机强迫关闭了 [解决]spring-boot连接redis报连接超时问题Unable to connect to Redis; nested exception is io.lettuce.core.RedisCommandTimeoutException: Command timed out spring boot 连接集群报 org.springframework.data.redis.connection.PoolException: Returned connection io.lettuce.core.cluster.StatefulRedisClusterConnectionImpl@26300d0a was either previously org.springframework.dao.QueryTimeoutException: Redis command timed out; nested exception is io.lettuce.core.RedisCommandTimeoutException: Command timed out after 300 millisecond(s)
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM