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 1mpfs7-0005BU-IS for pgsql-general@arkaria.postgresql.org; Wed, 24 Nov 2021 00:10:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mpfs6-0000X3-F0 for pgsql-general@arkaria.postgresql.org; Wed, 24 Nov 2021 00:10:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mpfs6-0000Wt-48 for pgsql-general@lists.postgresql.org; Wed, 24 Nov 2021 00:10:46 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mpfs2-000071-Uc for pgsql-general@postgresql.org; Wed, 24 Nov 2021 00:10:45 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id A1B285C010D; Tue, 23 Nov 2021 19:10:41 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 23 Nov 2021 19:10:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=w FVqhpu6ryw3kLAKupLag59O+tVk792qHZOsb1zGIoA=; b=uVYZBlqpyIOCuhgFu 4XYJH1TKVoegINF9pAC55durtoobdwHNjY7g91m3zS4rIvQUvDYqYR+hCTPPDZOb JWbuubeTvtVcGaouU98SdpOkd1USLZpbBHyTYY1IQpi1WBNB3AuNUokmM4+WQAQS ZhoRX6Jt/TOO4rcz9BGhin0DGklzv8sjZdGx2KAH78E5u0uc8hYP/p08i00zP7hp 93wyiFTXKOYukKlhaa91HAyy/i3KxUUwpUg0N9mqnfZJnjNBrzLgBJKCgFK/foIN qDClfZIx2Bt1B+u499a5M92XBPcHYIilnek/BtKkl2QOe3iwFtHzoVNxkMheOdSx y3Ygg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=wFVqhpu6ryw3kLAKupLag59O+tVk792qHZOsb1zGI oA=; b=Mj0o5RHQG1teWBoE5vXWxhXcT7I4puFfNb640Z8szo08UAnaoVXg3mpsS Oph+90loXUpmfRjeoE6ld5nyshDJpm8SJWZEQ7Km51Q3A7E0tw1xqvkwZStjTDCI 6GVhOLPtsoX0A3uUslNaO34JorNsXT7Mj9e4yfuiB9/SExdKbdIBGCG2nl9hdXrf XYoeniuY8y3efMHzGcnQyrslHnD9m+bFd8RqX3UZC8WK6ldx+DJZMA0ZO1nD/+wp 5PWZLgus8QdU+Vx1OOmBh90hcHbrjohqmeN1C3ltVXFGDYHLEriPTOhZwCL7WjLJ GuvAyqxy9hubjLtRiyxvSUG0YkYfw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrgeejgddulecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnhepueevieduieelffekjeefhedvteegteduhfevjeelfeet ffejueeiffdvgeejfeeknecuffhomhgrihhnpeguihhgihhtrghlrdgrihenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 23 Nov 2021 19:10:40 -0500 (EST) Message-ID: <866ce56c-1f11-c045-f74e-66ccb341bc31@aklaver.com> Date: Tue, 23 Nov 2021 16:10:40 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Subject: Re: Max connections reached without max connections reached Content-Language: en-US To: James Sewell , Tom Lane Cc: pgsql-general References: <4176160.1637681607@sss.pgh.pa.us> <67613.1637709271@sss.pgh.pa.us> From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 11/23/21 15:53, James Sewell wrote: > > It's v odd as it happens *sometimes* - having said that it's happening > right this moment: > > [enterprisedb@oprpgs001 edb-as-11]$ ps -ef|grep postgres:  | wc -l > 517 > > [enterprisedb@oprpgs001 ~]$ ps -ef|grep postgres: | grep -i start | wc -l > 480 The enterprisedb is one of their customized versions? rundeck_cluster below refers to https://digital.ai/technology/rundeck? > > postgres=# select count(*) from pg_stat_activity; >  count > ------- >    97 > (1 row) > > postgres=# select * from pg_locks where not granted; >  locktype | database | relation | page | tuple | virtualxid | > transactionid | classid | objid | objsubid | virtualtransaction | pid | > mode | granted | fastpath > ----------+----------+----------+------+-------+------------+---------------+---------+-------+----------+--------------------+-----+------+---------+---------- > (0 rows) > Logs are showing a stream of: > > 2021-11-24 10:50:58 AEDT [869]: [1-1] > user=u_rundeck_rw,db=rundeck_cluster,client=10.154.19.23 > 10.154.19.23(57122) (0:53300)FATAL:  remaining connection slots are > reserved for non-replication superuser connections > 2021-11-24 10:50:58 AEDT [870]: [1-1] > user=u_rundeck_rw,db=rundeck_cluster,client=10.154.19.23 > 10.154.19.23(57124) (0:53300)FATAL:  remaining connection slots are > reserved for non-replication superuser connections > 2021-11-24 10:50:58 AEDT [871]: [1-1] > user=u_rundeck_rw,db=rundeck_cluster,client=10.154.19.23 > 10.154.19.23(57126) (0:53300)FATAL:  remaining connection slots are > reserved for non-replication superuser connections > > James > -- Adrian Klaver adrian.klaver@aklaver.com