Permanently turn off graphics
If you are running linux as a server, you do not need graphics wasting RAM.
vi /etc/default/grub
replace "splash" with "text"
update-grub
systemctl enable multi-user.target --force
systemctl set-default multi-user.target
systemctl set-default multi-user
systemctl isolate multi-user.target
gnome-session-quit
systemctl stop gdm
systemctl disable gdm
apt remove gdm