X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8A1E43A19E2 for ; Thu, 30 Dec 2004 18:43:06 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 43870-10 for ; Thu, 30 Dec 2004 18:42:40 +0000 (GMT) Received: from tetra.ehpg.net (tetra.ehpg.net [216.218.206.34]) by svr1.postgresql.org (Postfix) with ESMTP id 1EFEB3A1A69 for ; Thu, 30 Dec 2004 18:42:41 +0000 (GMT) Received: from ppp-68-122-211-163.dsl.irvnca.pacbell.net ([68.122.211.163] helo=gentoo.homenetwork) by tetra.ehpg.net with esmtpa (Exim 4.42) id 1Ck5Fx-0007pR-17; Thu, 30 Dec 2004 10:42:41 -0800 Subject: Re: too many clients From: "Gavin M. Roy" To: Matthew Terenzio Cc: pgsql-php@postgresql.org In-Reply-To: <988BEA40-5A6B-11D9-B3B3-0003938BDF32@localnotion.com> References: <330532b604122908387f7ffde2@mail.gmail.com> <0DC9A380-59AB-11D9-B3B3-0003938BDF32@localnotion.com> <330532b604122908387f7ffde2@mail.gmail.com> <5.2.1.1.0.20041229125718.00a02520@pop6.sympatico.ca> <1104363131.32605.30.camel@localhost> <87y8fg8iqi.fsf@stark.xeocode.com> <1104384788.32609.42.camel@localhost> <988BEA40-5A6B-11D9-B3B3-0003938BDF32@localnotion.com> Content-Type: text/plain Organization: 800 Pound Gorilla Date: Thu, 30 Dec 2004 10:45:36 -0800 Message-Id: <1104432336.32609.44.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.039 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200412/11 X-Sequence-Number: 2969 Yes, php opens 1 persistant connection per apache backend per database. On Thu, 2004-12-30 at 09:03 -0500, Matthew Terenzio wrote: > > > > > > On Thu, 2004-12-30 at 00:20 -0500, Greg Stark wrote: > >> "Gavin M. Roy" writes: > >> > >>> I use it on a few very high traffic sites without issue, but it is > >>> tuned so > >>> that there is only 1 persistant connection per apache backend and > >>> postgresql > >>> will allow the max apache backends, which by default is generally > >>> 256. I > >>> highly recommend it in such a situation, while I generally do not > >>> recommend > >>> it in any other. > So if I have one Postgres installation but two databases, is it > possible that PHP would create twice as many persistant connections as > apache childs? This may be where my understanding went awry. > > > > ---------------------------(end of > > broadcast)--------------------------- > > TIP 4: Don't 'kill -9' the postmaster >