博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
redis 异常解决办法
阅读量:7078 次
发布时间:2019-06-28

本文共 1243 字,大约阅读时间需要 4 分钟。

redis 异常解决办法

26069:M 08 Aug 17:06:58.858 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.26069:M 08 Aug 17:06:58.859 # Server started, Redis version 3.0.726069:M 08 Aug 17:06:58.859 # 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.26069:M 08 Aug 17:06:58.859 # 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.26069:M 08 Aug 17:06:58.978 * DB loaded from disk: 0.119 seconds

分别执行如下语句:

echo 511 > /proc/sys/net/core/somaxconnecho "vm.overcommit_memory = 1" >> /etc/sysctl.confsysctl vm.overcommit_memory=1echo never > /sys/kernel/mm/transparent_hugepage/enabled

/etc/rc.local的最后添加

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

转载地址:http://djcml.baihongyu.com/

你可能感兴趣的文章
服务型存储市场的现状
查看>>
绿盟科技网络安全威胁周报2017.07 请关注OpenSSL拒绝服务漏洞CVE-2017-3733
查看>>
Qlik潘应麒:大数据时代下的现代分析学
查看>>
从技术上升到业务 混合云容灾提上日程
查看>>
云计算与网格计算的深入比较
查看>>
《VMware Virtual SAN权威指南》一2.3.3 二层或三层
查看>>
《计算机科学与工程导论:基于IoT和机器人的可视化编程实践方法第2版》一1.1.2 计算机就业形势分析...
查看>>
同济大学博导陈明:解读中国制造2025
查看>>
中国少年儿童新闻出版总社CIO:快乐工作
查看>>
一款成熟的数据中心模型设计
查看>>
论坛程序vBulletin 5曝漏洞 可能已泄露千万用户数据
查看>>
大数据资源争夺战此起彼伏 对用户而言是福是祸?
查看>>
一文读懂分布式系统
查看>>
Flask中的请求上下文和应用上下文
查看>>
Web应用防护系统OpenWAF开源CC防护模块
查看>>
重拾百度定位之踩坑篇(上)
查看>>
联想Luigi Brochard:高性能计算三大战略, 推动人工智能飞速发展
查看>>
芒果贴冯振:我是怎么做老年人产品的
查看>>
软银集团任命新董事 ARM与Sprint CEO正式进入董事会
查看>>
“630”后市场急冷 台湾光伏企业营收下滑
查看>>