From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Rajesh Kumar <rajeshkumar.dba09@gmail.com>
To: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Idle_session_timeout
Date: Wed, 04 Oct 2023 22:34:44 +0200
Message-ID: <37b909eb3a90ce66315ff88d62f122a47399b720.camel@cybertec.at> (raw)
In-Reply-To: <CAJk5AtZ9b11Jbahr8upTgtdq_sNCvqmoQVNH1drPxSKPZsYLWg@mail.gmail.com>
References: <CAJk5AtZ9b11Jbahr8upTgtdq_sNCvqmoQVNH1drPxSKPZsYLWg@mail.gmail.com>
On Wed, 2023-10-04 at 21:08 +0530, Rajesh Kumar wrote:
> I was facing issue with idle connections not closed.
>
> 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.
Yes, if the connection is forcibly closed by the server, the client won't be happy.
If you say "idle connections not closed", that is the fault of the application.
The application has to explicitly close all connections it does not need any more.
Yours,
Laurenz Albe
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: laurenz.albe@cybertec.at, rajeshkumar.dba09@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: Idle_session_timeout
In-Reply-To: <37b909eb3a90ce66315ff88d62f122a47399b720.camel@cybertec.at>
* 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