Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 63EC0475DFF for ; Wed, 30 Oct 2002 07:10:43 -0500 (EST) Received: from smtp1.powertech.no (smtp1.powertech.no [195.159.0.145]) by postgresql.org (Postfix) with ESMTP id A9469475DBD for ; Wed, 30 Oct 2002 07:10:42 -0500 (EST) Received: from stingray.intra (garn.startsiden.no [195.159.43.66]) by smtp1.powertech.no (Postfix) with ESMTP id 71100887F for ; Wed, 30 Oct 2002 13:10:44 +0100 (CET) Content-Type: text/plain; charset="us-ascii" From: Denis Braekhus Reply-To: denis@startsiden.no To: pgsql-admin@postgresql.org Subject: Behaviour patterns on pgsql (7.1.3) Date: Wed, 30 Oct 2002 12:45:29 +0100 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200210301245.29698.denis@startsiden.no> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/294 X-Sequence-Number: 6152 Hi all, Anyone experienced similar patterns on their Web-DB setups ? Short setup description :=20 X frontend webservers (Apache 1.3.x) with php and mod_perl dynamic content. 1 backend db server (Postgresql 7.1.3). The webservers are _very_ busy, but send only a limited amount of their=20 requests to the backend (most requests are served using static content). Every now and then postgresql gets "too busy" and these patterns emerge : - some connections are just idling and not being reaped (presumably either = the=20 browser/client or the apache webserver timed out the request) - these connections stack up to a point where the other "live" queries are= =20 handled so inefficiently that pgsql enters a "bad downwards spiral". (Meaning it cannot serve enough requests fast enough due to high load. The= =20 number of connections increases, giving again more load, and so on ... ) I do VACUUM every night, and with Postgresql 7.1.3 cannot VACUUM during dai= ly=20 usage.=20 I know upgrading to the 7.2 series is a sane way out (possibly) of this, bu= t=20 due to development reasons, cannot do that right now (tm). I have to wait a= t=20 least another month or so..=20 Any clues to possible fixes / workarounds ?=20 Timeout settings someplace ?=20 BTW: The server has 1GB RAM, which seems sufficient to loading the entire D= B=20 dataset into memory, disk issues should not be a performance hindering fact= or=20 here.=20 cheers! --=20 Denis=20