phcynq
Last Updated: February 25, 2016
·
4.095K
· boris

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

1 Response
Add your response

17074

Thanks! it solved my problem too.

over 1 year ago ·