From: Tom Lane <tgl@sss.pgh.pa.us>
To: Martijn van Oosterhout <kleptog@svana.org>
Cc: Alex Adriaanse <alex@innovacomputing.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Out of memory
Date: Fri, 28 Mar 2008 20:07:15 -0400
Message-ID: <16720.1206749235@sss.pgh.pa.us> (raw)
In-Reply-To: <20080328215755.GF9150@svana.org>
References: <47ED3B41.80305@innovacomputing.com>
<20080328215755.GF9150@svana.org>
Martijn van Oosterhout <kleptog@svana.org> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, kleptog@svana.org, alex@innovacomputing.com
Subject: Re: Out of memory
In-Reply-To: <16720.1206749235@sss.pgh.pa.us>
References: <47ED3B41.80305@innovacomputing.com> <20080328215755.GF9150@svana.org> <16720.1206749235@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox