redis启动提示vm.overcommit_memory、somaxconn警告错误
2016-09-04 23:12
676 查看
1、WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
2、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.
解决:
第一个警告:
echo 1 > /proc/sys/vm/overcommit_memory 不需要启机器就生效
第二个警告:
echo 511 > /proc/sys/net/core/somaxconn
overcommit_memory参数说明:
设置内存分配策略(可选,根据服务器的实际情况进行设置)
/proc/sys/vm/overcommit_memory
可选值:0、1、2。
0, 表示内核将检查是否有足够的可用内存供应用进程使用;如果有足够的可用内存,内存申请允许;否则,内存申请失败,并把错误返回给应用进程。
1, 表示内核允许分配所有的物理内存,而不管当前的内存状态如何。
2, 表示内核允许分配超过所有物理内存和交换空间总和的内存
2、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.
解决:
第一个警告:
echo 1 > /proc/sys/vm/overcommit_memory 不需要启机器就生效
第二个警告:
echo 511 > /proc/sys/net/core/somaxconn
overcommit_memory参数说明:
设置内存分配策略(可选,根据服务器的实际情况进行设置)
/proc/sys/vm/overcommit_memory
可选值:0、1、2。
0, 表示内核将检查是否有足够的可用内存供应用进程使用;如果有足够的可用内存,内存申请允许;否则,内存申请失败,并把错误返回给应用进程。
1, 表示内核允许分配所有的物理内存,而不管当前的内存状态如何。
2, 表示内核允许分配超过所有物理内存和交换空间总和的内存
相关文章推荐
- redis 在备份报错修改vm.overcommit_memory
- sysctl 中 vm.overcommit_memory 的含义
- Android 启动模拟器是出现“Failed to allocate memory: 8”错误提示的原因及解决办法
- Redis 启动警告错误解决
- sysctl 中 vm.overcommit_memory 的含义
- 有关linux下redis overcommit_memory的问题
- Android 启动模拟器是出现“Failed to allocate memory: 8”错误提示的原因及解决办法
- Android 启动模拟器是出现“Failed to allocate memory: 8”错误提示的原因及解决办法
- 解决Android 启动模拟器是出现“Failed to allocate memory: 8”错误提示
- Redis 启动警告错误解决[转]
- vm.overcommit_memory和vm.overcommit_ratio
- Android 启动模拟器是出现“Failed to allocate memory: 8”错误提示的原因及解决办法
- 有关linux下redis overcommit_memory的问题
- 有关linux下redis overcommit_memory的问题
- Android 启动模拟器是出现“Failed to allocate memory: 8”错误提示的原因及解决办法
- Android 启动模拟器是出现“Failed to allocate memory: 8”错误提示的原因及解决办法
- vm.overcommit_memory和vm.overcommit_ratio
- 关于系统参数:vm.overcommit_memory 和 vm.overcommit_ratio;
- Linux启动tomcat报错Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000007aaa80000
- 有关linux下redis overcommit_memory的问题