From: Adrian Klaver <adrian.klaver@aklaver.com>
To: James Sewell <james.sewell@jirotech.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Max connections reached without max connections reached
Date: Tue, 23 Nov 2021 15:12:18 -0800
Message-ID: <29859e1f-d4ad-6c1a-b6f3-0b97e2f8d55f@aklaver.com> (raw)
In-Reply-To: <CAANVwEssH43T3qHwk46idFAAeMb4neeOxn+AXjmyQVbirU1=LA@mail.gmail.com>
References: <CAANVwEt-jwj_5axSJ5M9fOJRtW_1iXqBhsnK+Fofc09hhmsZJA@mail.gmail.com>
<4176160.1637681607@sss.pgh.pa.us>
<CAANVwEssH43T3qHwk46idFAAeMb4neeOxn+AXjmyQVbirU1=LA@mail.gmail.com>
On 11/23/21 14:56, James Sewell wrote:
> Sorry, I could have been clearer - pg_stat_activity is what I'm looking
> at - I'm recording connection info from here every 15 seconds (from a
> superuser account so I don't get locked out). It never peaks above 300
> (in fact when the incident happens no new connections can come in so it
> falls to around 100) - yet I'm seeing the log lines claim that I'm still
> hitting 597 (600 - 3 reserved).
What is the query you are using against pg_stat_activity?
>
> James
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, james.sewell@jirotech.com, tgl@sss.pgh.pa.us
Subject: Re: Max connections reached without max connections reached
In-Reply-To: <29859e1f-d4ad-6c1a-b6f3-0b97e2f8d55f@aklaver.com>
References: <CAANVwEt-jwj_5axSJ5M9fOJRtW_1iXqBhsnK+Fofc09hhmsZJA@mail.gmail.com> <4176160.1637681607@sss.pgh.pa.us> <CAANVwEssH43T3qHwk46idFAAeMb4neeOxn+AXjmyQVbirU1=LA@mail.gmail.com> <29859e1f-d4ad-6c1a-b6f3-0b97e2f8d55f@aklaver.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