From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Abraham, Danny <danny_abraham@bmc.com>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Very frequent "Too many clients" eventually crashes postmaster
Date: Sun, 3 May 2020 07:38:10 -0700
Message-ID: <298b1208-d684-b402-be5d-533339003db0@aklaver.com> (raw)
In-Reply-To: <210ed63ba2814d99971e43000d9c3c4b@phx-exmbprd-01.adprod.bmc.com>
References: <210ed63ba2814d99971e43000d9c3c4b@phx-exmbprd-01.adprod.bmc.com>
On 5/3/20 7:28 AM, Abraham, Danny wrote:
> Is there a way to eliminate postmaster crash/core ?
>
> A surge in short-term connections eventually crashes PG on "no free slots in PMChildFlags array".
>
> Happens on AIX 7.2
>
> =>grep "2020-05-02 08:16" * | grep clients | wc -l
> 0
> =>grep "2020-05-02 08:17" * | grep clients | wc -l
> 0
> =>grep "2020-05-02 08:18" * | grep clients | wc -l
> 309
> =>grep "2020-05-02 08:19" * | grep clients | wc -l
> 603
> =>grep "2020-05-02 08:20" * | grep clients | wc -l
> 288
> =>grep "2020-05-02 08:21" * | grep clients | wc -l
> 230
>
> 2020-05-02 08:21:27.653 CDTFATAL: no free slots in PMChildFlags array
>
Well:
backend/storage/ipc/pmsignal.c
/* Out of slots ... should never happen, else postmaster.c messed up */
elog(FATAL, "no free slots in PMChildFlags array");
return 0; /* keep
compiler quiet */
So:
1) What are your connection settings?
2) What is generating the client traffic?
3) Is there a pooler in front of the server?
--
Adrian Klaver
adrian.klaver@aklaver.com
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, danny_abraham@bmc.com
Subject: Re: Very frequent "Too many clients" eventually crashes postmaster
In-Reply-To: <298b1208-d684-b402-be5d-533339003db0@aklaver.com>
References: <210ed63ba2814d99971e43000d9c3c4b@phx-exmbprd-01.adprod.bmc.com> <298b1208-d684-b402-be5d-533339003db0@aklaver.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