Skip to content

Instantly share code, notes, and snippets.

@fernandoaleman
Last active March 1, 2023 14:14
Show Gist options
  • Save fernandoaleman/07f40de23864c50071929f5e3ab5840d to your computer and use it in GitHub Desktop.
Save fernandoaleman/07f40de23864c50071929f5e3ab5840d to your computer and use it in GitHub Desktop.
redis bgsave failed because fork Cannot allocate memory
Modify /etc/sysctl.conf and add
vm.overcommit_memory=1
Then restart sysctl by:
$ sudo sysctl -p /etc/sysctl.conf
@davidivab
Copy link

Thanks a lot,

Your solution allowed us to fix a problem we had with a system of digital singage.

@hoangnguyen115
Copy link

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment