当前位置:首页 > 开发素材 > 正文内容

redis启动错误提示解决

admin8年前 (2017-09-07)开发素材1846

29581:M 07 Sep 11:01:20.505 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.

29581:M 07 Sep 11:01:20.505 # Server started, Redis version 3.2.0

29581:M 07 Sep 11:01:20.505 # 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.

29581:M 07 Sep 11:01:20.505 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.


WARNING: The TCP backlog setting of 511.解决

原因就是因为128太小了。执行echo 511 > /proc/sys/net/core/somaxconn

命令就把这个问题解决了。但是这个只是暂时的。

如果想要永久解决,打开ietc/sysctl.conf,在这里面添net.core.somaxconn= 1024 然后执行sysctl -p 就可以永久消除这个warning


WARNING overcommit_memory is set to 0..解决

执行

echo 1 > /proc/sys/vm/overcommit_memory



WARNING you have Transparen Huge Pages..解决

执行

echo never > /sys/kernel/mm/transparent_hugepage/enabled

永久处理:

vi /etc/rc.local添加

if test -f /sys/kernel/mm/transparent_hugepage/enabled; then  
   echo never > /sys/kernel/mm/transparent_hugepage/enabled  
fi  
if test -f /sys/kernel/mm/transparent_hugepage/defrag; then  
   echo never > /sys/kernel/mm/transparent_hugepage/defrag  
fi


分享到:

扫描二维码推送至手机访问。

版权声明:本文由云河空间发布,如需转载请注明出处。

本文链接:http://yuyunhe.cn/index.php/post/244.html

分享给朋友:

“redis启动错误提示解决” 的相关文章

10个顶级的CSS UI开源框架

10个顶级的CSS UI开源框架

随着CSS3和HTML5的流行,我们的WEB页面不仅需要更人性化的设计理念,而且需要更酷的页面特效和用户体验。作为开发者,我们需要了解一些宝贵的CSS UI开源框架资源,它们可以帮助我们更快更好地实现一些现代化的界面,包括一些移动设备的网页界面风格设计。本文分享了10个顶级的CSS UI开源框架,有...

Eclipse的Aptana studio插件安装

Eclipse安装Aptana插件【在线安装】1. 在线安装:Help->Install New Software...->Add...->Name: "Aptana", Location: http:...

HTML5离线存储之Application Cache

HTML5离线存储之Application Cache

关于html5的离线存储,大致可分为:localStorage, sessionStorageindexedDBweb sqlapplication cache可以在chrome的debug工具/Resources下产看,下面来着重说明一下Application Cache。访问流程当我们...

jQuery二维码生成插件jquery-qrcode

jQuery二维码生成插件jquery-qrcode

现在,二维码在我们生活中出现的频率越来越高,购物、看电影等等很多地方都会用的。今天发现一款用jQuery生成二维码的小插件–jquery.qrcode.js,分享给大家。jquery.qrcode.js是一款专门为浏览器生成二维码的jQuery小插件。它能让你方便的为网页添加二维码。它是独立的,gz...

Cygwin国内比较快的镜像

 windows上装一个cygwin,只占很小的空间,windows就可以当unix用了。今天找到两个不错的国内镜像。  1)上海交大的FTP:ftp://ftp.sjtu.edu.cn/sites/cygwin.com/pub/cygwin/  2)163的镜像:ht...

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。