Re: need help on memory allocation

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Rambabu V <ram(dot)wissen(at)gmail(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: need help on memory allocation
Date: 2018-01-19 10:07:35
Message-ID: 1516356455.2491.5.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Svensson Peter 2018-01-19 11:03:42 SV: pgaudit and create postgis extension logs a lot inserts
Previous Message Joe Conway 2018-01-18 16:54:21 Re: pgaudit and create postgis extension logs a lot inserts