My aging work machine is a Mac Mini from 2018. Its hardware spec is fine if a bit sluggish these days. After a couple months of happenstance uptime, however, it was hard to ignore just how slow it had become. There were a handful of reasons for it, the likely principle of which was that the system and its 16 GB of memory had a 15 GB swap file. Constant swapping memory to disk and vice versa is a decidedly slow operation even if an SSD is in play.
Keep on readin' on "Fix" apps with memory leaks with crontab⟶