Issue with memory management

Operating system CentOS Linux 6.10
Webmin version 1.960 Usermin version 1.810
Virtualmin version 6.13

I’ve had a recent issue with memory on this server gradually being maxed out and exhausted never seemingly being cleared down.

I believe I’ve solved the issue by setting:

sudo sysctl -w vm.overcommit_memory=2
sudo sysctl -w vm.overcommit_ratio=100

As detailed in - https://upcloud.com/community/tutorials/troubleshoot-linux-memory-issues/

However, when the server is rebooted I’m not sure these settings are being retained even though I added:

vm.overcommit_memory=2
vm.overcommit_ratio=100

to /etc/sysctl.conf

As when I run sudo sysctl -a I do not see these 2 settings listed?

Is the /etc/sysctl.conf the correct place to set this and/or is there anything else I need to do?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.