this post was submitted on 24 Jun 2024
1 points (100.0% liked)

Lemmy Support

4629 readers
1 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

EDIT: It seems to have been fixed thanks to @graycube@lemmy.world. Running analyze verbose; in postgres.

After updating to 0.19.5 from 0.19.3 my postgres is often using up 500%+ of CPU according to docker stats and often going to 100% CPU on most cores according to htop. Also noticed in the uptime monitor:

htop shows one of the 5 postgres processes constantly on UPDATE. I think this might be part of the problem.

I'm not comfortable with postgres and am honestly completely in the dark how or where to mitigate or even pinpoint this issue.

Any help would be appreciated.

top 1 comments
sorted by: hot top controversial new old
[–] nutomic@lemmy.ml -1 points 2 months ago

You can use pg_stat_statements to find slow queries. Try sorting by top total_exec_time.