this post was submitted on 28 May 2024
62 points (91.9% liked)

Lemmy

2172 readers
23 users here now

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to [email protected].

founded 4 years ago
MODERATORS
 

This is just to followup from my prior post on latencies increasing with increasing uptime (see here).

There was a recent update to lemmy.ml (to 0.19.4-rc.2) ... and everything is so much snappier. AFAICT, there isn't any obvious reason for this in the update itself(?) ... so it'd be a good bet that there's some memory leak or something that slows down some of the actions over time.

Also ... interesting update ... I didn't pick up that there'd be some web-UI additions and they seem nice!

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 21 points 6 months ago (2 children)

For the moment at least. Whatever problem we had before, it seemed to get worse over time, eventually requiring a restart. So we’ll have to wait and see.

[–] [email protected] 9 points 6 months ago (1 children)

Well, I've been on this instance through a few updates now (since Jan 2023) and my impression is that it's a pretty regular pattern (IE, certain APIs like that for replying to a post/comment or even posting have increasing latencies as uptime goes up).

[–] [email protected] 1 points 5 months ago (1 children)

Sounds exactly like the problem I fixed and mostly caused

https://github.com/LemmyNet/lemmy/pull/4696

[–] [email protected] 1 points 5 months ago

Nice! Also nice to see some SQL wizardry get involved with lemmy!

[–] [email protected] 6 points 6 months ago (1 children)

My server seems to get slower until requiring a restart every few days, hoping this provides a fix for me too 🤞

[–] [email protected] 5 points 6 months ago (1 children)

Try switching to Postresql 16.2 or later.

[–] [email protected] 3 points 6 months ago (1 children)
[–] [email protected] 4 points 6 months ago (1 children)

Nothing particular, but there was a strange bug in previous versions that in combination with Lemmy caused a small memory leak.

[–] [email protected] 1 points 6 months ago (1 children)

In my case it’s lemmy itself that needs to be restarted, not the database server, is this the same bug you’re referring to?

[–] [email protected] 1 points 6 months ago (1 children)

Yes, restarting Lemmy somehow resets the memory use of the database as well.

[–] [email protected] 1 points 5 months ago

Hm, weird bug. Thanks for the heads up ❤️ I’ve been using the official ansible setup but might be time to switch away from it