Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ivkPE-00011d-TW for pgsql-jdbc@arkaria.postgresql.org; Sun, 26 Jan 2020 16:05:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ivkPC-0004Ne-I7 for pgsql-jdbc@arkaria.postgresql.org; Sun, 26 Jan 2020 16:04:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ivkPC-0004NB-7H for pgsql-jdbc@lists.postgresql.org; Sun, 26 Jan 2020 16:04:58 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ivkP9-00044D-3U for pgsql-jdbc@lists.postgresql.org; Sun, 26 Jan 2020 16:04:57 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 00QG4ptB029779; Sun, 26 Jan 2020 11:04:51 -0500 From: Tom Lane To: Deepak Rai cc: "David G. Johnston" , pgsql-jdbc@lists.postgresql.org Subject: Re: BUG #16232: Database server connection limit exceeding In-reply-to: References: <16232-26f076ca50acb16d@postgresql.org> Comments: In-reply-to Deepak Rai message dated "Sun, 26 Jan 2020 12:42:51 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29777.1580054691.1@sss.pgh.pa.us> Date: Sun, 26 Jan 2020 11:04:51 -0500 Message-ID: <29778.1580054691@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Deepak Rai writes: > We are actively monitoring database connections and total connection count > was not more than 14. Max connections are allowed in the database is 300. > May i know why this is occurring even though connection is not crossing its > threshold. Over-aggressive setting for superuser_reserved_connections, perhaps? Another possibility is a whole lot of uncommitted prepared transactions. regards, tom lane