Re: Does idle sessions will consume more cpu and ram? If yes,how to control them

From: Ron <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Does idle sessions will consume more cpu and ram? If yes,how to control them
Date: 2018-12-20 01:41:04
Message-ID: de4c1915-f8b3-43e9-016f-f80dbe11c274@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2018-12-20 03:34:16 Re: Does idle sessions will consume more cpu and ram? If yes,how to control them
Previous Message Michael Paquier 2018-12-20 01:27:18 Re: Does idle sessions will consume more cpu and ram? If yes,how to control them