From: Abraham, Danny <danny_abraham@bmc.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: RE: Re: too many clients already
Date: Thu, 2 Apr 2020 15:41:32 +0000
Message-ID: <563c66befbd046f7b5b558a6167eca04@phx-exmbprd-01.adprod.bmc.com> (raw)
In-Reply-To: <685fc0f3-1e5b-23b4-fcde-626eb2fe5b01@aklaver.com>
References: <c7e50c9443eb4ae8a2eec661c1b000f9@phx-exmbprd-01.adprod.bmc.com>
<B4363D3A-DFFC-4EDF-BB31-FFBC25DFEE8C@gmail.com>
<489930bf467e463bb79d23c80260e3ac@phx-exmbprd-01.adprod.bmc.com>
<e559efc9-945e-db86-b23c-84654b2ec130@aklaver.com>
<67efe0c4ece34399b7cccb183f817a66@phx-exmbprd-01.adprod.bmc.com>
<685fc0f3-1e5b-23b4-fcde-626eb2fe5b01@aklaver.com>
va-tlv-ctm-qa22.isr.bmc.com% sql
psql: FATAL: sorry, too many clients already
va-tlv-ctm-qa22.isr.bmc.com% sql
psql (11.5)
Type "help" for help.
ctrlmdb=> show max_connections;
max_connections
-----------------
1200
(1 row)
ctrlmdb=> show shared_buffers;
shared_buffers
----------------
2000MB
(1 row)
-----Original Message-----
From: Adrian Klaver <adrian.klaver@aklaver.com>
Sent: Thursday, April 02, 2020 6:37 PM
To: Abraham, Danny <danny_abraham@bmc.com>; pgsql-general@postgresql.org
Subject: [EXTERNAL] Re: too many clients already
On 4/2/20 8:35 AM, Abraham, Danny wrote:
> Big installation: max_connections is 1200, shared_buffers is 2GB
Have you confirmed that the above is actually in effect by doing?:
show max_connections;
>
> -----Original Message-----
> From: Adrian Klaver <adrian.klaver@aklaver.com>
> Sent: Thursday, April 02, 2020 6:30 PM
> To: Abraham, Danny <danny_abraham@bmc.com>; pgsql-general@postgresql.org
> Subject: [EXTERNAL] Re: too many clients already
>
> On 4/2/20 8:22 AM, Abraham, Danny wrote:
>> No pg-bouncer or connection pooling.
>> ps -elf | grep postgres | grep idle | wc -l ==> 61
>>
>> and BTW: Running, say 500 one command psql in parallel will have the same affect..
>
> Hmm. In psql on the cluster in question what does below return?:
>
> show max_connections;
>
>>
>> -----Original Message-----
>> From: Rob Sargent <robjsargent@gmail.com>
>> Sent: Thursday, April 02, 2020 6:10 PM
>> To: Abraham, Danny <danny_abraham@bmc.com>
>> Cc: pgsql-general@postgresql.org
>> Subject: [EXTERNAL] Re: too many clients already
>>
>>
>>
>>> On Apr 2, 2020, at 9:06 AM, Abraham, Danny <danny_abraham@bmc.com> wrote:
>>>
>>> Hi,
>>>
>>> Will appreciate a hint here.
>>>
>>> Running on a big and stressed AIX platform and receiving lots of "CDTFATAL: sorry, too many clients already"
>>> and transient difficulty to log in.
>>>
>>> Happens on all PG versions (Tested 9.5,10.4,11.5)
>>>
>>> Big installation: max_connections is 1200, shared_buffers is 2GB
>>>
>>> But .. select count(*) from pg_stat_activity is only 66.
>>>
>>> Thanks
>>>
>>> Danny
>>>
>>>
>> Lots of idle, kept-alive clients? Do you have a connection pooler (e.g. pg-bouncer)?
>>
>>
>
>
--
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: danny_abraham@bmc.com, adrian.klaver@aklaver.com
Subject: Re: too many clients already
In-Reply-To: <563c66befbd046f7b5b558a6167eca04@phx-exmbprd-01.adprod.bmc.com>
References: <c7e50c9443eb4ae8a2eec661c1b000f9@phx-exmbprd-01.adprod.bmc.com> <B4363D3A-DFFC-4EDF-BB31-FFBC25DFEE8C@gmail.com> <489930bf467e463bb79d23c80260e3ac@phx-exmbprd-01.adprod.bmc.com> <e559efc9-945e-db86-b23c-84654b2ec130@aklaver.com> <67efe0c4ece34399b7cccb183f817a66@phx-exmbprd-01.adprod.bmc.com> <685fc0f3-1e5b-23b4-fcde-626eb2fe5b01@aklaver.com> <563c66befbd046f7b5b558a6167eca04@phx-exmbprd-01.adprod.bmc.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