zl程序教程

您现在的位置是:首页 >  数据库

当前栏目

Redis command timed out; nested exception is io.lettuce.core.RedisCommandTimeoutException Command

RedisCoreIO is Command out Exception nested
2023-09-11 14:16:27 时间

springboot 连接redis一直连接超时
首先分析redis服务是启动状态,项目连接配置也是正确的

在连接redis客户端 通过info命令来检查redis是否存在问题

used_memory_dataset_perc:96.65%

由此可以发现,内存已经到达了峰值,需要清理内存
通过命令分析出redis的大key --bigkeys

 redis-cli -h 127.0.0.1 -p 6379 -a 123456 --bigkeys

Biggest string found ‘bigkey’ has 4138 bytes
分析出大key 选出无用key 进行del操作 释放内存