zl程序教程

您现在的位置是:首页 >  数据库

当前栏目

解决redis Can’t save in background: fork: Cannot allocate memory详解大数据

Redis数据 详解 解决 in &# Cannot memory
2023-06-13 09:20:27 时间

前面启动Redis时,看到如下警告:

[1958] 13 Aug 16:18:24 # 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 command  sysctl vm.overcommit_memory=1  

for this to take effect.

需要修改/etc/sysctl.conf文件:

vim /etc/sysctl.conf

末尾追加vm.overcommit_memory = 1
然后执行sysctl vm.overcommit_memory=1,使之生效:

# sysctl vm.overcommit_memory=1 

vm.overcommit_memory = 1

原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/9735.html

分布式文件系统,分布式数据库区块链并行处理(MPP)数据库,数据挖掘开源大数据平台数据中台数据分析数据开发数据治理数据湖数据采集