I have a 22.04 server that keeps growing in RAM usage and then always ends up crashing and dying when RAM runs out. This happens a couple weeks apart, as you can see in the included graph of RAM usage. I cannot understand what is causing this, and as I understand it Ubuntu should be killing processes before the server crashes? Does anybody have any guidance on how to fix this problem? No process in htop is using alot of memory, so im not sure how to find out what the problem is. Its a VM, but I have several other ubuntu servers that run perfectly fine on the same host. Graph over RAM usage
Asked
Active
Viewed 38 times
for file in /proc/*/status; do awk '/VmSwap|Name/{printf $2 " " $3}END{ print ""}' $file; done | sort -k 2 -n -r|head -10
on a periodic basis to see what processes are actually swapping. I'd expect the proc with the memory leak will drift to the top of the list. – doneal24 Mar 08 '24 at 18:59