Also type free -h
Note: I’ve even experienced this myself recently only to discover that specific server did not have swap configured (very much my omission).
You are often recommended to have double the swap compared to RAM but you can get away with 1:1 with Discourse it seems.