From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: Persistent Connections
Date: Wed, 24 Jun 2020 12:47:36 +0200
Message-ID: <20200624104736.GB417@hjp.at> (raw)
In-Reply-To: <E19EF208-2A79-41A2-9760-577A85B815CD@gmail.com>
References: <E19EF208-2A79-41A2-9760-577A85B815CD@gmail.com>
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!"
Attachments:
signature.asc (application/pgp-signature, 832B) download
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: hjp-pgsql@hjp.at
Subject: Re: Persistent Connections
In-Reply-To: <20200624104736.GB417@hjp.at>
References: <E19EF208-2A79-41A2-9760-577A85B815CD@gmail.com> <20200624104736.GB417@hjp.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