UPDATE
Without expertise in this, I used Claude and ChatGPT to help me figure things out. So, as suggested, I went the swapfile route, but as it was pointed out, maybe I had already a swapfile based on how I installed Discourse. To make sure I did, I ran
sudo swapon --show
in Terminal and I got this:
![]()
So I looked at the “USED” column and thought: “well, if the swapfile is used to help things run smoother when RAM is not enough, but it says the swapfile is using 1.9GB out of 2GB, that will not help”
So I asked ChatGPT if I could just clear/empty the swapfile and I got this command:
sudo swapoff -a && sudo swapon -a
Ran it, let it do its thing and ran the other one again:
sudo swapon --show
Now I see this:
![]()
So I guess that it’s good to go through this process of cleaning/emptying the swapfile once in a while?