pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: JOIGNY Michael @Neteven <mjoigny@neteven.com>
To: pgsql-admin@postgresql.org
Subject: PG 11.8 > PG 12.3 : Unable to allocate section memory
Date: Wed, 12 Aug 2020 16:09:08 +0200
Message-ID: <64eae88b-8ac5-366c-b6a2-e7b59b3d191b@neteven.com> (raw)

Hi Community,

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!
2020-08-12 14:20:29.197 CEST [78792]: [1-1] user=,db=,app=,client= 
FATAL:  terminating connection due to administrator command
2020-08-12 14:20:29.197 CEST [78791]: [1-1] user=,db=,app=,client= 
FATAL:  terminating connection due to administrator command
2020-08-12 14:20:29.197 CEST [78793]: [1-1] user=,db=,app=,client= 
FATAL:  terminating connection due to administrator command
2020-08-12 14:20:29.197 CEST [78790]: [1-1] user=,db=,app=,client= 
FATAL:  terminating connection due to administrator command
2020-08-12 14:21:02.621 CEST [86289]: [2-1] 
user=postgres,db=template1,app=[unknown],client=[local] FATAL: out of memory
2020-08-12 14:21:04.632 CEST [29597]: [26704-1] 
user=xx,db=xx,app=[unknown],client=localhost FATAL:  fatal llvm error: 
Unable to allocate section memory!

Here are our settings :

_PG :_

max_connections = 3600

shared_buffers = 32GB
temp_buffers = 16MB
work_mem = 96MB
maintenance_work_mem = 8GB
max_stack_depth = 6MB
dynamic_shared_memory_type = posix

We use postgresql with pgbouncer as a pooler.


_PGbouncer :
_

pooler mode : session
max_client_conn = 6000
default_pool_size = 3000

We have ~ 2000 connections at the same time with ~ 20/30 are active.

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

Do you have an idea ?

Regards.

view thread (6+ messages)  latest in thread

Message-ID: <64eae88b-8ac5-366c-b6a2-e7b59b3d191b@neteven.com>
Permalink:  ../64eae88b-8ac5-366c-b6a2-e7b59b3d191b@neteven.com/
Also on:    postgresql.org/message-id/64eae88b-8ac5-366c-b6a2-e7b59b3d191b@neteven.com

 · 

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: mjoigny@neteven.com
  Subject: Re: PG 11.8 > PG 12.3 : Unable to allocate section memory
  In-Reply-To: <64eae88b-8ac5-366c-b6a2-e7b59b3d191b@neteven.com>

* 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