当前位置:   article > 正文

Redis之报错内存分配过度报错_warning memory overcommit must be enabled! without

warning memory overcommit must be enabled! without it, a background save or

以下为报错信息

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.重启即可

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/580963
推荐阅读
相关标签
  

闽ICP备14008679号