Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id CD5362E0085 for ; Mon, 21 Apr 2008 11:04:38 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 35931-03 for ; Mon, 21 Apr 2008 11:04:26 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from smtp140.iad.emailsrvr.com (smtp140.iad.emailsrvr.com [207.97.245.140]) by developer.postgresql.org (Postfix) with ESMTP id 4714F2E0082 for ; Mon, 21 Apr 2008 11:04:35 -0300 (ADT) Received: from relay4.r5.iad.mlsrvr.com (localhost [127.0.0.1]) by relay4.r5.iad.mlsrvr.com (SMTP Server) with ESMTP id EDA7BC67B; Mon, 21 Apr 2008 10:04:33 -0400 (EDT) Received: by relay4.r5.iad.mlsrvr.com (Authenticated sender: erik-AT-myemma.com) with ESMTP id CAA92C615; Mon, 21 Apr 2008 10:04:33 -0400 (EDT) Cc: pgsql-performance@postgresql.org Message-Id: From: Erik Jones To: Adrian Moisey In-Reply-To: <480C6367.3000508@careerjunction.co.za> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: connections slowing everything down? Date: Mon, 21 Apr 2008 09:04:28 -0500 References: <480C6367.3000508@careerjunction.co.za> X-Mailer: Apple Mail (2.919.2) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/299 X-Sequence-Number: 29792 On Apr 21, 2008, at 4:50 AM, Adrian Moisey wrote: > Hi > > # ps -ef | grep idle | wc -l > 87 > # ps -ef | grep SELECT | wc -l > 5 > > > I have 2 web servers which connect to PGPool which connects to our =20 > postgres db. I have noticed that idle connections seem to take up =20 > CPU and RAM (according to top). Could this in any way cause things =20= > to slow down? Dependant on how much memory you have in your system, yes. You can =20 fix the constant use of memory by idle connections by adjusting the =20 child_life_time setting in your pgpool.conf file. The default if 5 =20 minutes which a bit long. Try dropping that down to 20 or 30 seconds. Erik Jones DBA | Emma=AE erik@myemma.com 800.595.4401 or 615.292.5888 615.292.0777 (fax) Emma helps organizations everywhere communicate & market in style. Visit us online at http://www.myemma.com