linux下redis执行bgsave时,报overcommit_memory错误问题
现象 一台机器如果内存用完,在进行bgsave时,可能会报错。错误信息大概如下: [1946] 23 Mar 15:21:02.308 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the comm ...