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,问题就处理好了