Redis if Large insert and Background Save to Disk Failed

Large insert into Redis Server cause many RDB: Background Save to Disk

You maybe get Error in your redis log like:

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


Edit File: /etc/sysctl.conf
Put this at the end of line (Put in the bottom of file):


Restart Sysctl to Get new CONFIG

sudo sysctl -p /etc/sysctl.conf

Optional, restart your redis server

/etc/init.d/redis-server restart 
systemctl restart redis-server


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.