Comment on Lemmy instance using a lot of ram
youpie_temp@reddthat.com 11 months agoIt has zswap and a swapfile of about 8 gb, and it gets fully utilized
Comment on Lemmy instance using a lot of ram
youpie_temp@reddthat.com 11 months agoIt has zswap and a swapfile of about 8 gb, and it gets fully utilized
redcalcium@lemmy.institute 11 months ago
Yeah, this is why I have small swap on my servers. I’d rather the processes got killed by the oom killer and got restarted automatically instead of running very slowly and trashing the entire server.
jeena@jemmy.jeena.net 11 months ago
Since my upgrade to 0.19 I really struggle to keep my servr online. It sounds like what is happening to me too. The whole server beco.en unesponsive after the load goes to 100. After I kicked NextCloud from the server in only kept happening every coupple of days. Let’s see if this workaround helps to fix it. If not then I’ll remove swap.
poVoq@slrpnk.net 11 months ago
I have been running a cron script to automatically restart the lemmy backend, which in turn resets the postgres memory use ever since this problem started to happen months ago. For me 0.19.x actually made it less bad, but it is still an annoying issue.
redcalcium@lemmy.institute 11 months ago
Try limiting the database connection pool size too in
lemmy.hjson
. It helped a lot in my instance. I set mine to 30 in a small server with 8gb ram. You can set it to even lower value for lower postgres memory consumption.