Re: Persistent Connections - Mailing list pgsql-general

From Peter J. Holzer
Subject Re: Persistent Connections
Date
Msg-id 20200624104736.GB417@hjp.at
Whole thread Raw
In response to Persistent Connections  ("Bee.Lists" <bee.lists@gmail.com>)
Responses Re: Persistent Connections  ("Bee.Lists" <bee.lists@gmail.com>)
List pgsql-general
On 2020-06-23 16:29:46 -0400, Bee.Lists wrote:
> I have an issue with a server (v10) that’s seeing increasing
> connections until it’s maxxed-out.
>
> max_connections for my 4-core server is set to 12.

The default is 100. What was your reason for reducing it to such a low
value?


> 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.

> and another client on two machines.

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

> I also send queries through SSH on the LAN.

And maybe some more connections.

I can see that this could easily reach 12 connections.

        hp

--
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Attachment

pgsql-general by date:

Previous
From: "Peter J. Holzer"
Date:
Subject: Re: n_distinct off by a factor of 1000
Next
From: David Rowley
Date:
Subject: Re: pgbench and timestamps