Does Ubuntu freeze and become unresponsive because it runs out of memory? There is a solution.
earlyoom terminates processes when RAM and swap are running low to prevent Linux from freezing. Documentation Installation on Ubuntu/Debian: sudo apt update sudo apt install earlyoom sudo systemctl enable –now earlyoom Configuration: sudo nano /etc/default/earlyoom Example configuration: EARLYOOM_ARGS=”-m 2,1 -s 5,2 -r 60 –avoid ^(rubymine|node|Anno5[.]exe|dota2)$” -m 2,1 — send SIGTERM when available RAM is ≤2%, […]