I've been running this headless for a few years now, as a Media Server/NAS, and I'm not sure if it started after an Upgrade or not, I believe it did about a year ago, that's my memory. I didn't really know what was going on initially, as I haven't been using it much anymore.
However, after a while, I'd notice that all the services running on the machine and the data shares were not accessible, no way to get it to respond without a hard reboot, or waiting, sometimes just a few hours, sometimes longer.
I also noticed that memory usage was slowly climbing, then would drop after it came back online, so makes me wonder if it's something to do with the swap space? Tried doing weekly restarts, but that hasn't really seemed to help as much as I thought it would.
I was doing some reading and thinking about trying to manage the memory somehow, to see if that might resolve the freezing, and came across:
https://github.com/hakavlad/nohang
Or am I going straight to solution mode without figuring out what's actually wrong? I cannot see any errors when I tried checking system logs, and so not really sure, if someone might have some advice please?