redis集羣-哨兵模式.啓動報錯

WARNING overcommit_memory is set to 0! Background save may fail underlow 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. 3515:M 28 Mar16:27:14.669 # 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 toyour /etc/rc.local in order to retain the setting after a reboot.Redis must be restarted after THP

解決辦法:

執行

echo 1 > /proc/sys/vm/overcommit_memory

WARNING you have Transparent Huge Pages (THP) support enabled in yourkernel. 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. 3553:M 28 Mar16:30:20.753 * Ready to accept connections

解決辦法

執行

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

同時執行這個三個語句,然後重啓redis,問題就處理好了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章