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 BE2893AC25E for ; Thu, 30 Dec 2004 05:21:18 +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 01649-08 for ; Thu, 30 Dec 2004 05:20:56 +0000 (GMT) Received: from stark.xeocode.com (gsstark.mtl.istop.com [66.11.160.162]) by svr1.postgresql.org (Postfix) with ESMTP id 4B19D3AC29F for ; Thu, 30 Dec 2004 05:20:45 +0000 (GMT) Received: from localhost ([127.0.0.1] helo=stark.xeocode.com) by stark.xeocode.com with smtp (Exim 3.36 #1 (Debian)) id 1Cjsjl-0003VV-00; Thu, 30 Dec 2004 00:20:37 -0500 To: "Gavin M. Roy" Cc: Frank Bax , pgsql-php@postgresql.org Subject: Re: too many clients 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> In-Reply-To: <1104363131.32605.30.camel@localhost> From: Greg Stark Organization: The Emacs Conspiracy; member since 1992 Date: 30 Dec 2004 00:20:37 -0500 Message-ID: <87y8fg8iqi.fsf@stark.xeocode.com> Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.049 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200412/7 X-Sequence-Number: 2965 "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. That doesn't sound reasonable. Does your machine really have so many processors or i/o bandwidth that 256 postgres processes can really all make progress? Or do you have images and static html on the same web server? If so I suggest moving them to another web server. No need to have a postgres instance (and a php instance) sitting idle consuming memory waiting until someone happens to hit a dynamic page. -- greg