`
crabdave
  • 浏览: 1295212 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

redis错误vm.overcommit_memory&The TCP backlog setting of 511 cannot be enforced

 
阅读更多

redis错误vm.overcommit_memory&The TCP backlog setting of 511 cannot be enforced

 

 原文:

http://skly-java.iteye.com/blog/2167400

 

错误

1.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.

 


2.WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.

 


解决方法

第一个警告两个方式解决(overcommit_memory)

1.  echo "vm.overcommit_memory=1" > /etc/sysctl.conf  或 vi /etcsysctl.conf , 然后reboot重启机器

2.  echo 1 > /proc/sys/vm/overcommit_memory  不需要启机器就生效

 

第二个警告解决

1. echo 511 > /proc/sys/net/core/somaxconn

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics