首页 > 数据库技术 > 详细

redis.clients.jedis.exceptions.JedisDataException: 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 disable

时间:2019-01-12 13:47:27      阅读:868      评论:0      收藏:0      [点我收藏+]

今天运行项目,redis突然出现以下问题:

redis.clients.jedis.exceptions.JedisDataException: 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.

然后,打开redis日志,如下:

技术分享图片

如上大致意思是=>警告:过量使用内存设置为0!在低内存环境下,后台保存可能失败。为了修正这个问题,请在/etc/sysctl.conf 添加一项 ‘vm.overcommit_memory = 1‘ ,然后重启(或者运行命令‘sysctl vm.overcommit_memory=1‘ )使其生效。

然后按照日志提示解决:

技术分享图片

重启redis,之后问题解决

 

redis.clients.jedis.exceptions.JedisDataException: 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 disable

原文:https://www.cnblogs.com/dail1990/p/10259357.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!