Re: Unexplained rapid growth in memory usage of idle backends

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alex Balashov <abalashov(at)evaristesys(dot)com>
Cc: pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Unexplained rapid growth in memory usage of idle backends
Date: 2023-05-13 01:52:55
Message-ID: 1634073.1683942775@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Alex Balashov <abalashov(at)evaristesys(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message J T 2023-05-13 15:09:34 Re: Unexplained rapid growth in memory usage of idle backends
Previous Message David G. Johnston 2023-05-13 01:46:13 Re: pgsql code is not working.