I'm using Ubuntu 16.04 with Xfce on an Intel Core 2 Duo 2.53GHz and 4Gb RAM, which I've had for a while and which isn't keeping up with the increasing demands of software updates to Firefox and Xfce etc.
If I leave the computer unused (but on) for any length of time (typically overnight but often shorter) the GUI becomes unresponsive for a couple of minutes but then comes back to life.
I really only use these apps: Firefox, Handbrake, backuppc, terminal.
Since it also covers various other non-GUI functions like backuppc, iptables, bind, dhcp, there may be a lot of unnecessary server-side stuff going on.
This is my freemem output:
adam@gondor:~$ free -m
total used free shared buff/cache available
Mem: 3883 683 909 144 2290 2771
Swap: 4024 186 3837
adam@gondor:~$
Can I diagnose and fix this without adding more hardware, and apart from not using Firefox anymore?