I have a postgresql server and i’m trying to disable the overcoomit_memory on my server.
It should be simple, a single line command: sysctl -w vm.overcommit_memory=2 No need to reboot.
But as i ran the command, my server will “stop” and then the only way to get it responding again is rebooting the droplet.
Does anyone knows why it happen and how to fix?
1: https://www.postgresql.org/docs/9.6/kernel-resources.html 2: https://www.hivelocity.net/kb/how-does-memory-overcommit-affect-postgresql/ 3: http://engineering.pivotal.io/post/virtual_memory_settings_in_linux_-_the_problem_with_overcommit/
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!