Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 4ABFD2E004E for ; Fri, 28 Mar 2008 21:07:27 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 84263-09 for ; Fri, 28 Mar 2008 21:07:22 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 5C6EA2E0038 for ; Fri, 28 Mar 2008 21:07:21 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m2T07GLn016721; Fri, 28 Mar 2008 20:07:16 -0400 (EDT) To: Martijn van Oosterhout cc: Alex Adriaanse , pgsql-general@postgresql.org Subject: Re: Out of memory In-reply-to: <20080328215755.GF9150@svana.org> References: <47ED3B41.80305@innovacomputing.com> <20080328215755.GF9150@svana.org> Comments: In-reply-to Martijn van Oosterhout message dated "Fri, 28 Mar 2008 22:57:55 +0100" Date: Fri, 28 Mar 2008 20:07:15 -0400 Message-ID: <16720.1206749235@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/1509 X-Sequence-Number: 130831 Martijn van Oosterhout writes: > My guess is that the total allocated VM is fairly close to the limit of > your configuration and that a slightly higher than normal load and a > background autovacuum took it over the edge. My guess is that if you up > the swap to 4GB or perhaps 8GB, you'll get a lot more room to manouver. The bits about > 2008-03-10 18:43:33 EDT LOG: could not fork new process for connection: > Cannot allocate memory certainly suggest that the problem was a global out-of-memory condition and not just within any one process. I concur with raising swap, but also with the upthread suggestions to cut down the number of concurrent connections. The segfaults (sig11s) are a bit disturbing too --- what that probably indicates is someplace using malloc() and failing to test for failure, neither of which is a good thing. Did you by any chance get core dumps from those? A stack trace would be mighty useful. regards, tom lane