-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Apparent memory leak with use_presence
option
#12053
Comments
Thanks, do you see an increase in memory usage too? This may be due to caches slowly filling up, so you may see this fixed if you enable time based expiry for caches (which is enabled by default in v1.53.0). Not all caches are affected by time based expiry, so please let us know if time based expiry fixes this issue. |
Hello, I'll test the new config Let you know the result. Thanks you. |
Oh, hmm. I wonder if its because we've disabled time based expiry for the caches for |
Oh, that is very interesting. Looks like my assumption that it was due to caches is wrong. Can i ask what your test code does? Does it create lots of new users? Maybe the data leak is we're storing a presence update for each new user forever? |
Hello, My test code is on the top of the comments in this issue. (Archive.zip) I explained how to reproduce the issue. Thanks you. |
use_presence
option.use_presence
option
This is likely fixed by #12213, which is in v1.58.0. The cause was that |
Hello,
Description
GC(Garbage Collection) time increases unbounded for specific config in homeserver.yaml.
Our running synapse's
homeserver.yaml
is quite old, so we just keep theuse_presence
options.Then,
In my opinion, the gc time increase more as requests are increases.
It is not easy to catch the problem, because It is a kind of aging issue.
So, it took a time to know about it.
If we set the settings to the latest, then the unbounded increase is not appear anymore.
Steps to reproduce
Archive.zip
Thanks you.
Hyosung
The text was updated successfully, but these errors were encountered: