Re: Very frequent "Too many clients" eventually crashes postmaster - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Very frequent "Too many clients" eventually crashes postmaster
Date
Msg-id 298b1208-d684-b402-be5d-533339003db0@aklaver.com
Whole thread Raw
In response to Very frequent "Too many clients" eventually crashes postmaster  ("Abraham, Danny" <danny_abraham@bmc.com>)
List pgsql-general
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



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Very frequent "Too many clients" eventually crashes postmaster
Next
From: TalGloz
Date:
Subject: Re: Compiling C Extension Functions against PostgreSQL 12