pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alex Balashov <abalashov@evaristesys.com>
Cc: pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Unexplained rapid growth in memory usage of idle backends
Date: Fri, 12 May 2023 21:52:55 -0400
Message-ID: <1634073.1683942775@sss.pgh.pa.us> (raw)
In-Reply-To: <2D17E15D-8D5B-4DF7-A238-12455C2731D8@evaristesys.com>
References: <2D17E15D-8D5B-4DF7-A238-12455C2731D8@evaristesys.com>

Alex Balashov <abalashov@evaristesys.com> writes:
> Occasionally, about once every 2 months, we'll get a slow-motion implosion over a period of about 24 hours, where the resident memory size of some of the backends shoots up from a reasonable few hundred MB to several gigs -- and will keep growing, e.g.

I'm a little suspicious that the excess memory consumption is a
consequence of JIT-compiled code not getting recycled promptly.
Do you have JIT enabled, and if so are you relying on it too much
to turn it off?

I don't have any concrete idea of why JIT code management would work
fine and then stop working fine, but we do have other reports of
memory leaks from that.

			regards, tom lane





view thread (9+ messages)  latest in thread

Message-ID: <1634073.1683942775@sss.pgh.pa.us>
Permalink:  ../1634073.1683942775@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1634073.1683942775@sss.pgh.pa.us

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, abalashov@evaristesys.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Unexplained rapid growth in memory usage of idle backends
  In-Reply-To: <1634073.1683942775@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