vm.overcommit_memory

불당   
   조회 10313  

redis 서버를 start 하니 아래와 같은 메시지가 나왔습니다.

[29130] 18 May 21:13:17.081 # Server started, Redis version 2.6.13
[29130] 18 May 21:13:17.081 # 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.
[29130] 18 May 21:13:17.081 * The server is now ready to accept connections on port 6379

/etc/sysctl.conf에 아래의 설정을 추가해 줍니다.
vm.overcommit_memory = 1
그리고 명령을 실행. 설마 이것 때문에 reboot???
sysctl vm.overcommit_memory=1

참조.
- opencode.co.kr -