pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: mjoigny@neteven.com
Cc: pgsql-admin@postgresql.org
Subject: Re: PG 11.8 > PG 12.3 : Unable to allocate section memory
Date: Wed, 12 Aug 2020 10:41:15 -0400
Message-ID: <108452.1597243275@sss.pgh.pa.us> (raw)
In-Reply-To: <64eae88b-8ac5-366c-b6a2-e7b59b3d191b@neteven.com>
References: <64eae88b-8ac5-366c-b6a2-e7b59b3d191b@neteven.com>

"JOIGNY Michael @Neteven" <mjoigny@neteven.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





view thread (6+ messages)  latest in thread

Message-ID: <108452.1597243275@sss.pgh.pa.us>
Permalink:  ../108452.1597243275@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/108452.1597243275@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, mjoigny@neteven.com
  Subject: Re: PG 11.8 > PG 12.3 : Unable to allocate section memory
  In-Reply-To: <108452.1597243275@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