From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stephan Knauss <pgsql@stephans-server.de>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Debugging leaking memory in Postgresql 13.2/Postgis 3.1
Date: Wed, 31 Mar 2021 14:24:10 -0400
Message-ID: <3269480.1617215050@sss.pgh.pa.us> (raw)
In-Reply-To: <6ea52e56-b401-7716-f592-a8fdc98df667@stephans-server.de>
References: <9f73e655-14b8-feaf-bd66-c0f506224b9e@stephans-server.de>
<2919657.1617129981@sss.pgh.pa.us>
<6ea52e56-b401-7716-f592-a8fdc98df667@stephans-server.de>
Stephan Knauss <pgsql@stephans-server.de> writes:
> Hello Tom, the output below looks similar to the OOM output you
> expected. Can you give a hint how to interpret the results?
Looks like the answer is that wherever the leak is, it's not accounted
for by this info; none of those contexts are particularly large.
Based on nearby threads, it occurs to me to ask whether you have JIT
enabled, and if so whether turning it off helps. There seems to be
a known leak of the code fragments generated by that in some cases.
If that's not it, then the leak must be accumulating through plain
old malloc calls. There's not much of that in the core backend
(although if you use ispell text search dictionaries, maybe [1] is
relevant), so my suspicions would next fall on any extensions you
might be using.
regards, tom lane
[1] https://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=eba939551
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, pgsql@stephans-server.de
Subject: Re: Debugging leaking memory in Postgresql 13.2/Postgis 3.1
In-Reply-To: <3269480.1617215050@sss.pgh.pa.us>
References: <9f73e655-14b8-feaf-bd66-c0f506224b9e@stephans-server.de> <2919657.1617129981@sss.pgh.pa.us> <6ea52e56-b401-7716-f592-a8fdc98df667@stephans-server.de> <3269480.1617215050@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox