Re: One source of constant annoyance identified - Mailing list pgsql-general

From Tom Lane
Subject Re: One source of constant annoyance identified
Date
Msg-id 25540.1025188848@sss.pgh.pa.us
Whole thread Raw
In response to One source of constant annoyance identified  ("Markus Wollny" <Markus.Wollny@computec.de>)
Responses Re: One source of constant annoyance identified  (Curt Sampson <cjs@cynic.net>)
List pgsql-general
"Markus Wollny" <Markus.Wollny@computec.de> writes:
> [ turned off persistent connections ]

> Now there's still the odd 250MB backend lingering around for some time,
> but it's not four or five of them any more, wich is a big gain when
> there's 250MB swap around more often than not.

So you haven't really solved the problem --- somewhere there is a query
being issued that ramps the backend up to a lot of memory.  All you've
done is ensured that the backend won't hang around very long.  The
persistent connection isn't really at fault, except in that it causes
backends to keep being used after their memory usage has become bloated.

Although this might be enough to eliminate your immediate performance
problem, you should keep looking.  Starting lots more backends than you
need to is a performance hit, so turning off persistent connections is
really only a stopgap not a desirable answer.  And I'm still wondering
whether you've exposed a fixable memory leak bug.  We need to identify
exactly what query is causing the backends to eat memory.

            regards, tom lane



pgsql-general by date:

Previous
From: Tom Jenkins
Date:
Subject: script to keep views "correct"?
Next
From: Jorge Sarmiento
Date:
Subject: Re: Strange behaviour of SELECT ... IN