BUG #16707: Memory leak
От | PG Bug reporting form |
---|---|
Тема | BUG #16707: Memory leak |
Дата | |
Msg-id | 16707-f5df308978a55bf8@postgresql.org обсуждение исходный текст |
Ответы |
Re: BUG #16707: Memory leak
|
Список | pgsql-bugs |
The following bug has been logged on the website: Bug reference: 16707 Logged by: Kurt Roeckx Email address: kurt@roeckx.be PostgreSQL version: 12.4 Operating system: Debian Description: Hi, It seems that since I switched from PostgreSQL 9.5 to 12, I started to have a memory leak. This results in PostgreSQL dying because it can no longer allocate memory, in which case it restarts and most of the time everything then just recovers, which is why I'm rather late in noticing the problem. I migrated early April to 12.2-2.pgdg100+1, and I'm currently running 12.4-1.pgdg100+1. I'm running 2 database on that that server, but I only seem to have issues with 1 of them, only the processes that connect to that database seem to have a memory leak. The only database I have a problem with is the one used by synapse (https://github.com/matrix-org/synapse). My configuration has: shared_buffers = 4096MB work_mem = 64MB maintenance_work_mem = 64MB The VSZ started around 4.3 GB, now is at 5.4 GB, of which 5.1 is RSS. The VSZ and RSS grow over time. There are 10 such processes, all connections to the synapse database. All other processes, including a connection the other database, still have a VSZ of 4.3 GB. The stats collector is the exception with only 64MB VSZ. I've put log_statement to "all" for a short while to see the queries that were happening. The only type of query I see that's different to what all the other databases do is that it uses "BEGIN ISOLATION LEVEL REPEATABLE READ", while all the others just use "BEGIN". Not sure if that's related or not. Kurt
В списке pgsql-bugs по дате отправления: