Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id E69D8475E7B for ; Thu, 31 Oct 2002 04:25:36 -0500 (EST) Received: from smtp1.powertech.no (smtp1.powertech.no [195.159.0.145]) by postgresql.org (Postfix) with ESMTP id C74CE475AE4 for ; Thu, 31 Oct 2002 04:25:35 -0500 (EST) Received: from stingray.intra (garn.startsiden.no [195.159.43.66]) by smtp1.powertech.no (Postfix) with ESMTP id 58BFA8B69; Thu, 31 Oct 2002 10:25:36 +0100 (CET) Content-Type: text/plain; charset="iso-8859-1" From: Denis Braekhus Reply-To: denis@startsiden.no To: pgsql-admin@postgresql.org Subject: Re: Behaviour patterns on pgsql (7.1.3) Date: Thu, 31 Oct 2002 10:27:14 +0100 User-Agent: KMail/1.4.3 References: <200210301245.29698.denis@startsiden.no> <670.1036004972@sss.pgh.pa.us> In-Reply-To: <670.1036004972@sss.pgh.pa.us> Cc: Tom Lane MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200210311027.14914.denis@startsiden.no> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/313 X-Sequence-Number: 6171 On Wednesday 30 October 2002 20:09, Tom Lane wrote: > This strikes me as a fault on the client side, not in Postgres --- to > wit, poor connection management. It is not Postgres' job to kill idle > client connections. I suppose you are right. The thing is we have never used persistant=20 connections (tried to once, learned from the mistake..) and all the mod_php= =20 scripts (4.1.x version of PHP) do explicitly close their connections.. This might definitely be an apache problem of some kind. It seems to be les= s=20 grave if I drop the MaxRequestsperChild config value for apache to an abysm= al=20 100.. (Should _not_ be necessary, and is affecting our performance..) > But having said that, I do not think that idle connections per se would > cause any performance degradation on the server side. Perhaps they also > have open transactions that are holding locks that other queries need? > That again is really a client-side bug... Well, believe me, it does.. It only begins to be a real _problem_ not a=20 symptom after 10 or so idle connections, but indeed postgresql drops in=20 performance with too many open connections. I figured this part of the problem could possibly be lack of memory for the= =20 system, and I think I need to play with the postgresql.conf settings.=20 I checked back in the archive for hints and tips, and found some, the box h= as=20 1GB of RAM, so I should be able to find some nice balance for it ! Regards --=20 Denis Braekhus - ABC Startsiden AS http://www.startsiden.no