Redis error: MISCONF Redis is configured to save RDB snapshots, but is currently not able to pers...
2016-09-30 00:00
316 查看
Redis error: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.
项目中在使用redis存储缓存的时候连续遇到上面的问题。下面对问题原因和解决方案做下记录。
解决办法:修改redis配置文件中的vm.overcommit_memory=1。
原因:Redis在保存数据到硬盘时为了避免主进程假死,需要Fork一份主进程,然后在Fork进程内完成数据保存到硬盘的操作,如果主进程使用了4GB的内存,Fork子进程的时候需要额外的4GB,此时内存就不够了,Fork失败,进而数据保存硬盘也失败了。
参考文章:http://www.redicecn.com/html/Linux/20131125/468.html
项目中在使用redis存储缓存的时候连续遇到上面的问题。下面对问题原因和解决方案做下记录。
解决办法:修改redis配置文件中的vm.overcommit_memory=1。
原因:Redis在保存数据到硬盘时为了避免主进程假死,需要Fork一份主进程,然后在Fork进程内完成数据保存到硬盘的操作,如果主进程使用了4GB的内存,Fork子进程的时候需要额外的4GB,此时内存就不够了,Fork失败,进而数据保存硬盘也失败了。
参考文章:http://www.redicecn.com/html/Linux/20131125/468.html
相关文章推荐
- (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk.
- (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on d
- #Redis Error #MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details a
- Redis提示(error) MISCONF Redis is configured to save RDB snapshots, but it is currently not able to pe
- (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on d
- (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on d
- // Error: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on
- Redis (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persis
- 【Redis笔记-5】(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to p
- (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk.
- (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk.
- (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on d
- Redis提示(error) MISCONF Redis is configured to save RDB snapshots, but it is currently not able to pe
- #Redis Error #MISCONF Redis is configured to save RDB snapshots, but is currently not able to persis
- (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on d
- MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error
- MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error
- (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on d
- (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk.
- (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk