Redis "Misconf Redis is configured to save RDB snapshots, but was currently not able-persist on disk" issue

Source: Internet
Author: User
Tags redis

Today in the program, Jedis put data into the Redis process, "misconf Redis is configured to the save RDB snapshots, but was currently not able-persist on di SK "error;

Then look at the Redis logs and see the error "Can ' t save in Background:fork:Cannot allocate memory", the hint is obvious "the fork process is not enough RAM!" "But there is still more than one g of memory;

After online query, Redis saves data to the hard disk in order to avoid the main process of death, need to fork a master process, and then in the fork process to save the data to the hard disk operation, if the main process uses 4GB of memory, fork sub-process needs additional 4GB, when the memory is not enough, Fork failed, and the data saved the hard drive also failed.

Resolved as follows:

Execute command sysctl Vm.overcommit_memory=1

/etc/sysctl.conf file Additions

Vm.overcommit_memory=1

Redis "Misconf Redis is configured to save RDB snapshots, but was currently not able-persist on disk" issue

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.