redis排错--Redis is configured to save RDB snapshots, but it is currently not able to persist on disk.

{"timestamp":"2020-11-04T06:02:19.095+0000","status":500,"error":"Internal Server Error","message":"Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.","path":"/cllect"}

 

 


redis排错--Redis is configured to save RDB snapshots, but it is currently not able to persist on disk.


 


查看 CPU使用情况,可以在云控制台界面上看到

redis排错--Redis is configured to save RDB snapshots, but it is currently not able to persist on disk.


 

查看内存使用情况: free   -h           或       free   -g        或    free  -m

redis排错--Redis is configured to save RDB snapshots, but it is currently not able to persist on disk.


查看磁盘剩余情况:    df   -hl 

redis排错--Redis is configured to save RDB snapshots, but it is currently not able to persist on disk.


vi   /etc/sysctl.conf


在结尾处添加  :  vm.overcommit_memory=1


 重启redis服务器,问题解决,但是之前的数据没有了


实际排查中可以使用下面命令结合使用,查看具体某个进程的 实时状况

ps -ef|grep redis
top  -p  进程号 

redis排错--Redis is configured to save RDB snapshots, but it is currently not able to persist on disk.

按q退出该进程的实时监控


查看redis.conf配置文件logfile中设置的日志打印位置

 

redis排错--Redis is configured to save RDB snapshots, but it is currently not able to persist on disk.

 


 

参考一:

redis排错--Redis is configured to save RDB snapshots, but it is currently not able to persist on disk.


 参考二:

redis排错--Redis is configured to save RDB snapshots, but it is currently not able to persist on disk.


 

 

FR:徐海涛(hunk Xu)
QQ技术交流群:386476712