Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mM34S-0006XB-19 for pgsql-general@arkaria.postgresql.org; Fri, 03 Sep 2021 06:53:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mM34Q-0007pz-VB for pgsql-general@arkaria.postgresql.org; Fri, 03 Sep 2021 06:53:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mM34Q-0007pr-M6 for pgsql-general@lists.postgresql.org; Fri, 03 Sep 2021 06:53:02 +0000 Received: from [2a01:4f9:3a:121a::2] (helo=mail.stephans-server.de) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mM34O-00064h-3k for pgsql-general@lists.postgresql.org; Fri, 03 Sep 2021 06:53:02 +0000 Received: from [192.168.178.22] (i59F776BF.versanet.de [::ffff:89.247.118.191]) (AUTH: PLAIN knauss, ) by mail.stephans-server.de with ESMTPSA id 00000000038E0002.000000006131C64B.00380318; Fri, 03 Sep 2021 08:52:58 +0200 Subject: Re: memory consumption of memory for postgres db container To: pgsql-general@lists.postgresql.org References: From: Stephan Knauss Message-ID: Date: Fri, 3 Sep 2021 08:52:57 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a01:4f9:3a:121a::2 (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 02.09.2021 16:35, M Tarkeshwar Rao wrote: > > We did a stability test for our product, where we continuously > inserting data into postgres tables. We did this for three days > continuously. > > Memory utilization of our Postgres container continuously increasing. > I am not certain whether it is related, but you might want to check. I had a similar issue where the anonymous memory was sort of leaking with a rate of 2 GiB per hour. it was resolved by doing a "set jit=off". You can see the full thread including some hints on how to check where memory is allocated here: https://www.postgresql.org/message-id/flat/9f73e655-14b8-feaf-bd66-c0f506224b9e%40stephans-server.de Stephan