Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecTe3-0007wk-6X for pgsql-performance@arkaria.postgresql.org; Fri, 19 Jan 2018 10:11:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecTe2-00082i-RM for pgsql-performance@arkaria.postgresql.org; Fri, 19 Jan 2018 10:11:34 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ecTaY-0002AN-C6 for pgsql-performance@lists.postgresql.org; Fri, 19 Jan 2018 10:07:58 +0000 Received: from mx1.mailbox.org ([80.241.60.212]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ecTaR-0005AD-9m for pgsql-performance@postgresql.org; Fri, 19 Jan 2018 10:07:56 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id BACD142BC4; Fri, 19 Jan 2018 11:07:46 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) (amavisd-new, port 10030) with ESMTP id Xi7a1ltS-HlL; Fri, 19 Jan 2018 11:07:36 +0100 (CET) Message-ID: <1516356455.2491.5.camel@cybertec.at> Subject: Re: need help on memory allocation From: Laurenz Albe To: Rambabu V , pgsql-performance@postgresql.org Date: Fri, 19 Jan 2018 11:07:35 +0100 In-Reply-To: References: Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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