From: Mohit Kumar Sahni <Mohit.Sahni@india.nec.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Cc: Maneesh Kumar Singh <maneesh.singh@india.nec.com>
Subject: Connection Drop from PostgreSQL Database Server
Date: Tue, 5 Mar 2019 12:19:35 +0000
Message-ID: <TYAPR01MB2063E77CF28C350045ABEACFBC720@TYAPR01MB2063.jpnprd01.prod.outlook.com> (raw)
I have done a setup over Azure Cloud for my PostgreSQL DB.
It's Ubuntu 18.04 LTS (4vCPU, 8GB RAM) machine with PostgreSQL 9.6 version.
The problem that occurring is, when the connection to the postgresql db stays idle for some time let's say 2 to 10 minutes then the connection to the db does not respond such that it doesn't fulfil the request and keep processing the query.
Same goes with my JAVA Springboot Application. The connection doesn't respond and the query keep processing.
This happens randomly such that the timing is not traceable sometimes it happens in 2 minutes, sometimes in 10 minutes & sometimes don't.
I have tried with PostgreSQL Configuration file parameters. I have tried:
tcp_keepalive_idle, tcp_keepalive_interval, tcp_keepalive_count.
Also statement_timeout & session_timeout parameters but it doesn't change anyway.
Thank you
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: Mohit.Sahni@india.nec.com, maneesh.singh@india.nec.com
Subject: Re: Connection Drop from PostgreSQL Database Server
In-Reply-To: <TYAPR01MB2063E77CF28C350045ABEACFBC720@TYAPR01MB2063.jpnprd01.prod.outlook.com>
References: <TYAPR01MB2063E77CF28C350045ABEACFBC720@TYAPR01MB2063.jpnprd01.prod.outlook.com>
* 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