phcynq
Last Updated: February 25, 2016
·
3.605K
· boris
Beer avatar

Redis can't save in background

Time ago at work I found following error on our three Redis servers:

[3765] 30 Jan 11:31:10 * 1 changes in 900 seconds. Saving... 
[3765] 30 Jan 11:31:10 # Can't save in background: fork: Cannot allocate memory

To fix that, I just re-wrote the overcommit_memory value as follows:

$ echo 1 > /proc/sys/vm/overcommit_memory sysctl vm.overcommit_memory=1
Say Thanks
Respond

1 Response
Add your response

17074
Photo on 08.01.2013 at 04.15

Thanks! it solved my problem too.

over 1 year ago ·
Filed Under