Need guidance to come out of error

Hi All,

I am getting this displayed whenever I start bench in the terminal with bench start command .

WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.

I am on Ubuntu 14.04 and frappe/erpnext v7,and below is my system spec

Please help

Thanks

This error is produced by Redis, just follow the suggestion you got in the log you pasted here, and for more detail read here http://stackoverflow.com/questions/24748902/redis-on-ubuntu-14-04

2 Likes

Hi @ganas .

Thanks for the reply , but I am getting this
bash: /proc/sys/vm/overcommit_memory: Permission denied
when running this command
sudo echo 1 > /proc/sys/vm/overcommit_memory

Please help

Thanks

sudo vi /etc/sysctl.conf
then add this line to the file
sysctl vm.overcommit_memory=1
then safe and reboot your system

2 Likes

@ganas . Many thanks for the reply . I am a novice could you tell me how to add , what is the command I need to enter in the terminal for this ?

Thanks

novice is not a problem, the problem is not willing to use google to search and help yourself, but I’ll help you anyway
in the terminal enter
sudo nano /etc/sysctl.conf
using down arrow in your keyboard go to the end of the file and in new line type
sysctl vm.overcommit_memory=1
after that CTRL+C then Y to safe
then you will be back to the terminal, and now you can reboot using
sudo reboot now

2 Likes

Many thanks for the support .