From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Hans Sebastian <hnsbstn@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Old active connections?
Date: Tue, 17 Apr 2018 17:08:41 -0700
Message-ID: <9e5e6abd-e7d0-17fe-06d3-edea494fe7d0@aklaver.com> (raw)
In-Reply-To: <CAMH0=P-VcGsBp+bHKr3j1BW=yqV7ff9b=_ZpO2+rqtVdmzBp1A@mail.gmail.com>
References: <CAMH0=P-VcGsBp+bHKr3j1BW=yqV7ff9b=_ZpO2+rqtVdmzBp1A@mail.gmail.com>
On 04/17/2018 05:02 PM, Hans Sebastian wrote:
> Hello group,
>
> We run postgresql 10.3 for a python django app with gunicorn on nginx
> with django version 1.9.5.
>
> Recently, we started noticing there are many active connections from the
> django app server that are more than 1 week old still showing in
> pg_stat_activity.
>
> Even though the django server has been stopped (all processes killed),
> the active connections still persist. All of these connections are
> UPDATE queries that look pretty normal.
Are sure they are coming from Django?
>
> Does anyone know the reasons they could be there? What could have caused
> them being still active?
Can we see the data from pg_stat_activity for those queries?
>
> This has become an issue as we started getting "FATAL: remaining
> connection slots are reserved for non-replication superuser connections"
>
> Thanks,
> -hans
>
--
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, hnsbstn@gmail.com
Subject: Re: Old active connections?
In-Reply-To: <9e5e6abd-e7d0-17fe-06d3-edea494fe7d0@aklaver.com>
References: <CAMH0=P-VcGsBp+bHKr3j1BW=yqV7ff9b=_ZpO2+rqtVdmzBp1A@mail.gmail.com> <9e5e6abd-e7d0-17fe-06d3-edea494fe7d0@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