check_latest_version && sudo apt update && sudo apt upgrade -y
Monitor current memory consumption:
free -h
ps aux --sort=-%mem | head
cat /proc/meminfo
Release unused memory:
sudo sync && sudo sysctl vm.drop_caches=3
sudo swapoff -a && sudo swapon -a
kill -9 high_memory_process_pid
Create additional virtual memory:
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
ENOMEM occurs when the system runs out of available memory to complete an operation.
dmesg | grep -i "out of memory"
cat /proc/sys/vm/overcommit_memory
swapon --show
top -o %MEM