BUG #16707: Memory leak
The Post Office <noreply@postgresql.org>
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: kurt@roeckx.be
Date: 2020-11-09T21:07:21Z
Lists: 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
Commits
-
llvmjit: Use explicit LLVMContextRef for inlining
- 3b991f81c457 12.18 landed
- 10912f7d4ff0 13.14 landed
- 75a20a4b4b44 14.11 landed
- aef521849b68 15.6 landed
- 2cf50585e54a 16.2 landed
- 9dce22033d5d 17.0 landed