This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Synapse media repository workers seem unbounded in memory usage, causing high GC times #8653
Labels
Comments
This looks to have been a problem for multiple months on matrix.org now, and is not a recent regression afaik. |
anoadragon453
added
z-bug
(Deprecated Label)
A-Performance
Performance, both client-facing and admin-facing
p1
labels
Oct 26, 2020
Is this something we're investigating now? |
Not actively. I've added it to the board so we don't forget about it. |
Next steps:
|
There also seems to be a matching file descriptor leak on this - maybe it's holding files in memory or something? |
We seem to be leaking sockets in
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Currently we seem to be unbounded in memory usage on the media repository. This doesn't appear to be cache related (i'm not even sure what we would cache). Having added 3 media_repo workers we're now tripling this overhead.
For what they do, I don't believe they should be using this much (seen up to 24Gb * 3) memory, and they have a very clean sawtooth profile for memory usage based on restarts
This memory is making its way into gen2 and so GC times are starting to take up to 50s when we near the full memory size.
Could be a leak in some thumbnailing code or something?
The text was updated successfully, but these errors were encountered: