From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Does idle sessions will consume more cpu and ram? If yes,how to control them
Date: Wed, 19 Dec 2018 19:41:04 -0600
Message-ID: <de4c1915-f8b3-43e9-016f-f80dbe11c274@gmail.com> (raw)
In-Reply-To: <20181220012718.GI27104@paquier.xyz>
References: <CAEHH7R5wnqTJ3gxiBmVfQLk2CXa2k+xpq24Ma2edCaQm2jntbw@mail.gmail.com>
<CAGY1NOnUMH=+RUkEnyF3RyY2Bieruh5A+y-7T_49xoXj47MP3w@mail.gmail.com>
<20181220012718.GI27104@paquier.xyz>
On 12/19/18 7:27 PM, Michael Paquier wrote:
[snip]
> Each backend stores its own copy of the relation cache, so if you have
> idle connections which have been used for other work in the past then
> the memory of those caches is still around. Idle connections also have
> a CPU cost in Postgres when building snapshots for example, and their
> entries need to be scanned from a wider array, but usually the relation
> cache bloat is a wider problem.
So it's best to kill connections that have been idle for a while?
--
Angular momentum makes the world go 'round.
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: ronljohnsonjr@gmail.com
Subject: Re: Does idle sessions will consume more cpu and ram? If yes,how to control them
In-Reply-To: <de4c1915-f8b3-43e9-016f-f80dbe11c274@gmail.com>
References: <CAEHH7R5wnqTJ3gxiBmVfQLk2CXa2k+xpq24Ma2edCaQm2jntbw@mail.gmail.com> <CAGY1NOnUMH=+RUkEnyF3RyY2Bieruh5A+y-7T_49xoXj47MP3w@mail.gmail.com> <20181220012718.GI27104@paquier.xyz> <de4c1915-f8b3-43e9-016f-f80dbe11c274@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