What is the best way to prevent out of memory (OOM) freezes on Linux?
问题 Is there a way to make the OOM killer work and prevent Linux from freezing? I've been running Java and C# applications, where any memory allocated is usually used, and (if I'm understanding them right) overcommits are causing the machine to freeze. Right now, as a temporary solution, I added, vm.overcommit_memory = 2 vm.overcommit_ratio = 10 to /etc/sysctl.conf. Kudos to anyone who can explain why the existing OOM killer can't function correctly in a guaranteed manner, killing processes