Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 17C109F95E5 for ; Mon, 3 Sep 2007 03:47:13 -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 27877-01 for ; Mon, 3 Sep 2007 03:47:05 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.191]) by postgresql.org (Postfix) with ESMTP id CC4829F9596 for ; Mon, 3 Sep 2007 03:47:04 -0300 (ADT) Received: by rv-out-0910.google.com with SMTP id l15so817814rvb for ; Sun, 02 Sep 2007 23:47:03 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jvInHkKR/RnOKuenrkQC6ZGY6wLEIHbKy1OTiPduP1nkegOByfAHI8bNFO8IeKXcHWsWT10Bi7d3lecI5mNx3BX/Ti5W3C8cql1rP9W02dF58uam3eevbyq2wtgqC43ooC3lI5D5EE3e30amf9HCI8n9ewioUBJQ7fA7bF1t1Q8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WNKoTwFOHFRbVRXBKfF48VHjZo1wJb4YJQXH/DymmoMue5FCyjOAmze1BT+dA+Jdmb7ZZIVsvs99z4B+iosPnwPwLXQXd/OZdzWz0xUGpTceWnTfA4X5DnOay4pyMmk4tVVeFvH1STVEdqtd+KAtO8c9SrZO8NsA4QEBBi5nB6Q= Received: by 10.141.145.11 with SMTP id x11mr1824453rvn.1188802023073; Sun, 02 Sep 2007 23:47:03 -0700 (PDT) Received: by 10.141.159.11 with HTTP; Sun, 2 Sep 2007 23:47:01 -0700 (PDT) Message-ID: Date: Mon, 3 Sep 2007 01:47:03 -0500 From: "Scott Marlowe" To: "Anoo Sivadasan Pillai" Subject: Re: FW: max_connections and shared_buffers Cc: pgsql-admin@postgresql.org In-Reply-To: <772CDA49C515244FA14E34443F62E56402F173E0@EX-INDIA1.internal.rmplc.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <772CDA49C515244FA14E34443F62E56402F173E0@EX-INDIA1.internal.rmplc.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/10 X-Sequence-Number: 26771 On 9/3/07, Anoo Sivadasan Pillai wrote: > Hi Scott, > > Sorry for the long mail and Thank you for the quick response, > My problem is that our server shuts down unexpectedly, the settings are > max_connections=1024,shared_buffers = 32MB for the machine. The > following is the log snippet > 2007-08-15 15:44:10 LOG: could not receive data from client: No > connection could be made because the target machine actively refused it. > 2007-08-15 15:44:10 LOG: unexpected EOF on client connection > 2007-08-15 15:44:17 LOG: received fast shutdown request > 2007-08-15 15:44:17 LOG: aborting any active transactions > 2007-08-15 15:44:17 FATAL: terminating connection due to administrator > command > 2007-08-15 15:44:17 FATAL: the database system is shutting down > 2007-08-15 15:44:17 LOG: shutting down > > Any clues? Sounds like you're being hit by the Out of Memory (oom) killer in your kernel maybe? how many connections do you have when this happens? I think you might need to look at connection pooling. 1024 connections is a LOT of connections. How much memory does your server have, btw, and what version of pgsql and what os are you running this on?