Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qo4Ay-0002py-Kg for pgsql-admin@arkaria.postgresql.org; Wed, 04 Oct 2023 15:52:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qo49x-000OfQ-Qc for pgsql-admin@arkaria.postgresql.org; Wed, 04 Oct 2023 15:51:38 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qo49x-000Oet-68 for pgsql-admin@lists.postgresql.org; Wed, 04 Oct 2023 15:51:38 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qo49s-0000IP-MY for pgsql-admin@lists.postgresql.org; Wed, 04 Oct 2023 15:51:36 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 7A76263BF7; Wed, 4 Oct 2023 15:51:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1696434690; bh=6gdPUqJPZVOryN3Zt/L+QRmK47UfsbIIybQoBHiZjJA=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=WlX0NR40c7CbkMUn37jfPfYk94QOehGFk0evbQHeeWTIwoUPWyIAAaitNvtuoF1hK 0OKTfF4QrgQ/ZxrvjK5OLN+MW8T34yOULbSokIya/NQVuRNUYvu7HJtXWt2whCd7bU RDZujqyDazNt4fzVb0NUTGGIS0rPcwlrZu+DmIhlpPAwmib4R4egC8d27piaj7SsSH 0983GlLDXcRPn+d6h8rAY7jXzjPsjeOQIEIFiW4N4s4W6mb/VjdFbxqsUhBV+5x1JU IwCrhcJDajYLlj1Rim+RLZl4PCrX5P1pGmjlhCl4QquB50jzqUTpxoR8ImB51q/2vq Njir50AsuP36w== X-Virus-Scanned: Debian amavisd-new at emo07-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo07-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cnCzFiYqhhRo; Wed, 4 Oct 2023 15:51:30 +0000 (UTC) Received: from smtpclient.apple (unknown [165.140.184.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id DE37A63B9E; Wed, 4 Oct 2023 15:51:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1696434690; bh=6gdPUqJPZVOryN3Zt/L+QRmK47UfsbIIybQoBHiZjJA=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=WlX0NR40c7CbkMUn37jfPfYk94QOehGFk0evbQHeeWTIwoUPWyIAAaitNvtuoF1hK 0OKTfF4QrgQ/ZxrvjK5OLN+MW8T34yOULbSokIya/NQVuRNUYvu7HJtXWt2whCd7bU RDZujqyDazNt4fzVb0NUTGGIS0rPcwlrZu+DmIhlpPAwmib4R4egC8d27piaj7SsSH 0983GlLDXcRPn+d6h8rAY7jXzjPsjeOQIEIFiW4N4s4W6mb/VjdFbxqsUhBV+5x1JU IwCrhcJDajYLlj1Rim+RLZl4PCrX5P1pGmjlhCl4QquB50jzqUTpxoR8ImB51q/2vq Njir50AsuP36w== Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: Idle_session_timeout From: Scott Ribe In-Reply-To: Date: Wed, 4 Oct 2023 09:51:19 -0600 Cc: Pgsql-admin Content-Transfer-Encoding: quoted-printable Message-Id: <4DA883D1-36E4-455D-9998-50FAA41EA0F0@elevated-dev.com> References: To: Rajesh Kumar X-Mailer: Apple Mail (2.3731.700.6) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Oct 4, 2023, at 9:38 AM, Rajesh Kumar = wrote: >=20 > So, I thought of automating it and set the parameter = idle_session_timeout to 5min. But I got a message from application team = that they are getting jdbc error continuously and they are saying = connection is getting terminated. So I had to turn it off now. You're not doing anything incorrectly. You just have a mismatch between = expectations on the database vs application side. Either: the application is allowed to keep connections open permanently, and the = database has to be configured to support enough connections -OR- the database has a more limited number of connections, and the = application manages connecting and disconnecting