19 Mar

Redis: Can’t save in background: fork: Cannot allocate memory

Can't save in background: fork: Cannot allocate memory


Eeste error significa que su base de datos actual es más grande que la memoria que tiene. Para solucionar el problema, habilite vm.overcommit_memory:

sysctl vm.overcommit_memory = 1 

Para tener si después del reinicio agregue esta línea a /etc/sysctl.conf:

vm.overcommit_memory = 1

Y ejecuta este comando:

sysctl -p