以下为报错信息:
WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
解决方法;
1.找到 /etc/sysctl.conf 文件,打开
2.在添加一行,保存:
vm.overcommit_memory = 1
3.重启即可
本文介绍了如何解决Jemalloc库在低内存条件或未启用内存过度承诺时可能出现的问题,方法是在/etc/sysctl.conf中添加`vm.overcommit_memory=1`并重启系统以生效。
1万+

被折叠的 条评论
为什么被折叠?



