admin管理员组文章数量:1635840
现象:
Springboot、jeecgboot中Redis部分一直弹出info信息:
io.lettuce.core.protocol.ConnectionWatchdog - Reconnecting, last destination was ***
不停地弹出
原因:
这是lettuce-core
的实现里,有类似心跳机制的保持长连接方式,不过心跳机制是不停的来回发心跳包直到连接不可用再去被动重新连接,而lettuce的方案是将连接池里处于空闲(idle)状态的client每隔一段时间就主动断开,然后再重新连接。
解决方法:
提高特定日志级别:
springboot当中:
<logger name="io.lettuce.core.protocol" level="ERROR">
<appender-ref ref="ERROR_FILE" />
</logger>
或者:
jeecgboot当中:
jeecg-boot\jeecg-boot-module-system\src\main\resources\logback-spring.xml
68行:
<logger name="io.lettuce.core.protocol" level="ERROR" />
版权声明:本文标题:io.lettuce.core.protocol.ConnectionWatchdog - Reconnecting, last destination was不停弹出Springboot、jeecg 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/xitong/1729215079a1190332.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论