Re: need help on memory allocation - Mailing list pgsql-performance

From Laurenz Albe
Subject Re: need help on memory allocation
Date
Msg-id 1516356455.2491.5.camel@cybertec.at
Whole thread Raw
In response to need help on memory allocation  (Rambabu V <ram.wissen@gmail.com>)
List pgsql-performance
Rambabu V wrote:
> we are seeing idle sessions consuming memory in our database, could you please help me
> how much memory an idle session can use max and how can we find how much work_mem
> consuming for single process.
> 
> we are getting out of memory error,for this i'm asking above questions.

Are you sure that you see the private memory of the process and not the
shared memory common to all processes?

An "idle" connection should not hav a lot of private memory.

If you get OOM on the server, the log entry with the memory context dump
might be useful information.

Yours,
Laurenz Albe



pgsql-performance by date:

Previous
From: Joe Conway
Date:
Subject: Re: pgaudit and create postgis extension logs a lot inserts
Next
From: Svensson Peter
Date:
Subject: SV: pgaudit and create postgis extension logs a lot inserts