码迷,mamicode.com
首页 > 数据库 > 详细

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 14:19:39      阅读:231      评论:0      收藏:0      [点我收藏+]

标签:man   nap   保存   log   may   save   内存   技术分享   图片   

今天运行项目,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

标签:man   nap   保存   log   may   save   内存   技术分享   图片   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!