Re: Linux server connection process consumes all memory - Mailing list pgsql-novice

From Alan Hodgson
Subject Re: Linux server connection process consumes all memory
Date
Msg-id 201112032217.46928.ahodgson@simkin.ca
Whole thread Raw
In response to Re: Linux server connection process consumes all memory  ("Ioannis Anagnostopoulos" <ioannis@anatec.com>)
List pgsql-novice
On Saturday, December 03, 2011 05:43:30 PM Ioannis Anagnostopoulos wrote:
> Hi thank you for the answer, I am referring to the postgres process
> on the Linux server corresponding to the connection I have established.
> After doing a TOP you may see quite a few postgres processes. One of them
> belongs to the connection established by the client application. It is this
> process that grows consuming memory.
>

Tom has posted a request for some follow-up information that might help track
this down.

One thought, though, is it possible you are creating a new prepared statement
for each query instead of re-using one? And then not relelasing them?  I did a
quick test and creating millions of prepared statements will chew up a lot of
memory pretty quick in the backend.

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Linux server connection process consumes all memory
Next
From: "Jean-Yves F. Barbier"
Date:
Subject: prepared statements & functions