Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jK1fV-0005dc-23 for pgsql-general@arkaria.postgresql.org; Thu, 02 Apr 2020 15:22:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jK1fT-00062p-UC for pgsql-general@arkaria.postgresql.org; Thu, 02 Apr 2020 15:22:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jK1fT-00060c-M8 for pgsql-general@lists.postgresql.org; Thu, 02 Apr 2020 15:22:07 +0000 Received: from mx-us-phx-04.bmc.com ([198.147.194.159] helo=mx-us-phx-04-int.bmc.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jK1fR-00041z-5F for pgsql-general@postgresql.org; Thu, 02 Apr 2020 15:22:07 +0000 Received: from pps.filterd (mx-us-phx-04-int.bmc.com [127.0.0.1]) by mx-us-phx-04-int.bmc.com (8.16.0.27/8.16.0.27) with SMTP id 032FDWCC014202 for ; Thu, 2 Apr 2020 15:22:02 GMT Received: from phx-exmbprd-01.adprod.bmc.com ([172.24.35.196]) by mx-us-phx-04-int.bmc.com with ESMTP id 305crw0yef-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 02 Apr 2020 15:22:02 +0000 Received: from PHX-EXMBPRD-01.adprod.bmc.com (172.24.35.196) by phx-exmbprd-01.adprod.bmc.com (172.24.35.196) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 2 Apr 2020 10:22:01 -0500 Received: from PHX-EXMBPRD-01.adprod.bmc.com ([172.24.31.226]) by phx-exmbprd-01.adprod.bmc.com ([172.24.31.226]) with mapi id 15.00.1497.000; Thu, 2 Apr 2020 10:22:01 -0500 From: "Abraham, Danny" To: "pgsql-general@postgresql.org" CC: "Abraham, Danny" Thread-Topic: [EXTERNAL] Re: too many clients already Thread-Index: AdYJACbU3d7j1EwfS6Gf573iXWACkgAKoFqAAAolI9A= Date: Thu, 2 Apr 2020 15:22:00 +0000 Message-ID: <489930bf467e463bb79d23c80260e3ac@phx-exmbprd-01.adprod.bmc.com> References: In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [192.168.6.253] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: RE: Re: too many clients already X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.676 definitions=2020-04-02_06:2020-04-02,2020-04-02 signatures=0 X-Proofpoint-Spam-Reason: safe List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk No pg-bouncer or connection pooling. ps -elf | grep postgres | grep idle | wc -l =3D=3D> 61 and BTW: Running, say 500 one command psql in parallel will have the same a= ffect.. -----Original Message----- From: Rob Sargent =20 Sent: Thursday, April 02, 2020 6:10 PM To: Abraham, Danny Cc: pgsql-general@postgresql.org Subject: [EXTERNAL] Re: too many clients already > On Apr 2, 2020, at 9:06 AM, Abraham, Danny wrote: >=20 > Hi, >=20 > Will appreciate a hint here. >=20 > Running on a big and stressed AIX platform and receiving lots of "CDTFATA= L: sorry, too many clients already" > and transient difficulty to log in. >=20 > Happens on all PG versions (Tested 9.5,10.4,11.5) >=20 > Big installation: max_connections is 1200, shared_buffers is 2GB=20 >=20 > But .. select count(*) from pg_stat_activity is only 66. >=20 > Thanks >=20 > Danny >=20 >=20 Lots of idle, kept-alive clients? Do you have a connection pooler (e.g. pg= -bouncer)?