pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bee.Lists <bee.lists@gmail.com>
To: Peter J. Holzer <hjp-pgsql@hjp.at>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Persistent Connections
Date: Wed, 24 Jun 2020 13:55:00 -0400
Message-ID: <D0683AB3-7C3A-403B-BDAD-6E45B9B99D59@gmail.com> (raw)
In-Reply-To: <20200624104736.GB417@hjp.at>
References: <E19EF208-2A79-41A2-9760-577A85B815CD@gmail.com>
	<20200624104736.GB417@hjp.at>


> On Jun 24, 2020, at 6:47 AM, Peter J. Holzer <hjp-pgsql@hjp.at> wrote:
> 
> The default is 100. What was your reason for reducing it to such a low
> value?

“PostgreSQL 9 High Availability” recommended core count * 3.  

> 
>> I’ve installed pg_stat_activity and pg_stat_statements.
>> 
>> I access this server through a web app,
> 
> So that's probably a handful connections already.

Looks like 5 queries.  

As a comparison I have 37 queries asking for last login of a single user.  No errors. 
(I increased the max_connections yesterday)

>> and another client on two machines.
> 
> Maybe two or more (depending on what the non-specified client does).

I’m running crons on two machines, Postico, web apps on both machines.

>> I also send queries through SSH on the LAN.
> 
> And maybe some more connections. 

Yep.

> I can see that this could easily reach 12 connections.

Yep.  But I can’t see all this going over 12 when connections close.  Hence the confusion and issue.  

At least it’s a good thing I’m finding it’s not the gem alone.  


Cheers, Bee









view thread (12+ messages)  latest in thread

Message-ID: <D0683AB3-7C3A-403B-BDAD-6E45B9B99D59@gmail.com>
Permalink:  ../D0683AB3-7C3A-403B-BDAD-6E45B9B99D59@gmail.com/
Also on:    postgresql.org/message-id/D0683AB3-7C3A-403B-BDAD-6E45B9B99D59@gmail.com

 · 

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 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: bee.lists@gmail.com, hjp-pgsql@hjp.at
  Subject: Re: Persistent Connections
  In-Reply-To: <D0683AB3-7C3A-403B-BDAD-6E45B9B99D59@gmail.com>
  References: <E19EF208-2A79-41A2-9760-577A85B815CD@gmail.com> <20200624104736.GB417@hjp.at> <D0683AB3-7C3A-403B-BDAD-6E45B9B99D59@gmail.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