-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Postgres running out of memory (12+ GB) when processing large room → Panic with error Closed
#123
Comments
Do you get this error every time? Hard to really say since the error is a bit ... nondescript ... but any reason you might expect your database connection to get closed? (Maybe the database has been restarted for some reason?) How are you connecting to your database? TCP or a UNIX socket? Not saying it would help, but you could try using a UNIX socket connection instead of TCP if you're not already (in case it's some TCP timeout or so...) |
Error happens on every run. This seems to be where matrix-docker-ansible-deploy sets the connection: https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/856a328e96c679bc7d51760d00708d921a08cb17/roles/custom/matrix-synapse-auto-compressor/defaults/main.yml#L45 I have no real idea why the database might be getting closed. If I look at the postgres logs I see this
which to me looks like it's crashing postgres? Looking at the timings in the logs of the auto compressor also definitely not a timeout:
|
This sounds like some other mechanism killed a postgres process because it ate up too much RAM. (OOMKiller?) Check your system logs for clues. |
It was indeed the OOM killer. Processing that room seems to be eating 12GB+ of RAM. Is that expected behavior for large rooms like that? |
Closed
It doesn't sound like wanted behaviour at the very least! |
Running with matrix-docker-ansible-deploy, I get the following error
This corresponds to this version of the code, I believe, which is now this and doesn't seem to have changed.
The room in question(
!YTvKGNlinIzlkMTVRl:matrix.org
) is the element room.I'm guessing you will need some more information, how could I provide that?
The text was updated successfully, but these errors were encountered: