Re: PG 11.8 > PG 12.3 : Unable to allocate section memory

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: mjoigny(at)neteven(dot)com
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: PG 11.8 > PG 12.3 : Unable to allocate section memory
Date: 2020-08-12 14:41:15
Message-ID: 108452.1597243275@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"JOIGNY Michael @Neteven" <mjoigny(at)neteven(dot)com> writes:
> We have migrated from postgresql 11.8 to 12.3,unfortunately we have
> sometimes the following errors in the logs, causing postgres process to
> be killed.
> 2020-08-12 14:20:29.043 CEST [134644]: [71-1]
> user=xx,db=xx,app=[unknown],client=localhost FATAL:  out of memory
> 2020-08-12 14:20:29.049 CEST [30022]: [6126-1]
> user=xx,db=xx,app=[unknown],client=localhost FATAL:  fatal llvm error:
> Unable to allocate section memory!

Hmm, seems like your system is under undue memory pressure ...

> max_connections = 3600

This seems slightly insane. Get a pooler ... or, since you say you
already have one, let *it* do the multiplexing.

> Note that we had the same configuration under PG11 without any problem.

One thing that you might not have noticed is that "jit" defaults to on
as of v12. Turning it off would prevent this specific crash case.
(The fact that it's a crash comes from llvm's crummy error handling :-()
You might still have OOM problems, but with luck they'd not take down
the whole database.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message JOIGNY Michael @Neteven 2020-08-12 14:54:07 Re: PG 11.8 > PG 12.3 : Unable to allocate section memory
Previous Message MichaelDBA 2020-08-12 14:26:47 Re: PG 11.8 > PG 12.3 : Unable to allocate section memory