public inbox for [email protected]  
help / color / mirror / Atom feed
From: Bee.Lists <[email protected]>
To: Tom Lane <[email protected]>
Cc: Submit Postgresql Novice <[email protected]>
Subject: Re: Connections Increasing Slowly
Date: Tue, 23 Jun 2020 13:25:11 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>
	<[email protected]>
	<[email protected]>

On Jun 22, 2020, at 10:07 PM, Tom Lane <[email protected]> wrote:
> 
> Hmm.  If the client thinks the server dropped the connection, but the
> server thinks the connection is still live, that smells strongly of
> network-level disconnects.  Does the client let the connection sit idle
> for more than a minute or two at a time?  If so I'd bet that some firewall
> in between is deciding that the connection is dead and dropping it.
> Again, setting the server's tcp_keepalives_* settings could help fix that,
> by ensuring that the network connection sees some traffic regularly.
> 
> 			regards, tom lane

Hi Tom.  Some more testing. 

Turned off firewalld, same issue.  Some notes:

I have one simple query that’s in my activity (currently active) that’s in there 5 times.  It should have closed very quickly, yet there’s 5 instances idling.  I have two other queries, that should have operated quickly, then closed, but they are idling.  

tcp_keepalives* are around 3.

Any idea where to look now?

I’ve set my max_connections to 12 (4 cores * 3).


Cheers, Bee










view thread (8+ messages)  latest in thread

reply

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: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Connections Increasing Slowly
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox