Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id F28444762DD for ; Wed, 30 Oct 2002 14:09:33 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 5CB4C4761F6 for ; Wed, 30 Oct 2002 14:09:33 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id g9UJ9WhR000671; Wed, 30 Oct 2002 14:09:33 -0500 (EST) To: denis@startsiden.no Cc: pgsql-admin@postgresql.org Subject: Re: Behaviour patterns on pgsql (7.1.3) In-reply-to: <200210301245.29698.denis@startsiden.no> References: <200210301245.29698.denis@startsiden.no> Comments: In-reply-to Denis Braekhus message dated "Wed, 30 Oct 2002 12:45:29 +0100" Date: Wed, 30 Oct 2002 14:09:32 -0500 Message-ID: <670.1036004972@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/308 X-Sequence-Number: 6166 Denis Braekhus writes: > Every now and then postgresql gets "too busy" and these patterns emerge : > - some connections are just idling and not being reaped (presumably either the > browser/client or the apache webserver timed out the request) > - these connections stack up to a point where the other "live" queries are > handled so inefficiently that pgsql enters a "bad downwards spiral". > (Meaning it cannot serve enough requests fast enough due to high load. The > number of connections increases, giving again more load, and so on ... ) 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. 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... regards, tom lane