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 1krWSr-0000So-25 for pgsql-admin@arkaria.postgresql.org; Tue, 22 Dec 2020 01:27:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1krWSp-0001vu-UF for pgsql-admin@arkaria.postgresql.org; Tue, 22 Dec 2020 01:27:47 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1krWSp-0001vn-N7 for pgsql-admin@lists.postgresql.org; Tue, 22 Dec 2020 01:27:47 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1krWSn-0002us-NX for pgsql-admin@postgresql.org; Tue, 22 Dec 2020 01:27:46 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 0BM1RhtO574265; Mon, 21 Dec 2020 20:27:43 -0500 From: Tom Lane To: frank picabia cc: pgsql-admin@postgresql.org Subject: Re: Error: "could not fork new process for connection: Cannot allocate memory" In-reply-to: References: <492638.1608564438@sss.pgh.pa.us> Comments: In-reply-to frank picabia message dated "Mon, 21 Dec 2020 21:13:39 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <574263.1608600463.1@sss.pgh.pa.us> Date: Mon, 21 Dec 2020 20:27:43 -0500 Message-ID: <574264.1608600463@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk frank picabia writes: > My VMware admin has come back with a graph showing memory use over > the period in question. He has looked over other indicators > and there are no alarms triggered on the system. > It jives with what Cacti reported. Memory was never exhausted > and used only 50% of allocated RAM at the most. > If it's not a configuration issue in Postgres, and both internal and > external tools > show memory was not consumed to the point of firing off the "cannot fork" > error, would that mean that there is a bug in either the kernel or Postgres? [ shrug... ] Postgres is just reporting to you that the kernel wouldn't perform a fork(). Since you've gone to great lengths to show that Postgres isn't consuming excessive resources, either this is a kernel bug or you're running into some kernel-level (not Postgres) allocation limit. I continue to suspect the latter. Desultory googling shows that VMware can be configured to enforce resource allocation limits, so maybe you should be taking a hard look at your VMware settings. regards, tom lane