X-Original-To: pgsql-php-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 6822F9FA6B1 for ; Tue, 1 Aug 2006 04:49:58 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 87520-09 for ; Tue, 1 Aug 2006 04:49:48 -0300 (ADT) X-Greylist: delayed 00:20:40.131235 by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 52E409FB2B5 for ; Tue, 1 Aug 2006 04:49:47 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from mailer.elma.fr (mail.elma.fr [213.41.14.138]) by svr4.postgresql.org (Postfix) with ESMTP id D57365AFB40 for ; Tue, 1 Aug 2006 07:29:06 +0000 (GMT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailer.elma.fr (Postfix) with ESMTP id B21F82DE915; Tue, 1 Aug 2006 09:29:02 +0200 (CEST) Received: from mailer.elma.fr ([127.0.0.1]) by localhost (mailer [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27914-07; Tue, 1 Aug 2006 09:29:00 +0200 (CEST) Received: from herve.elma.loc (herve.elma.loc [10.0.1.2]) by mailer.elma.fr (Postfix) with ESMTP id ECC4A2DE914; Tue, 1 Aug 2006 09:29:00 +0200 (CEST) From: =?iso-8859-15?q?Herv=E9_Piedvache?= Organization: Elma =?iso-8859-15?q?Ing=E9nierie?= Informatique To: pgsql-php@postgresql.org, peter.hofer@ics.at Subject: Re: connection pool Date: Tue, 1 Aug 2006 09:29:00 +0200 User-Agent: KMail/1.9.3 References: <008d01c6b4da$5143b5e0$6515a8c0@ics2003.local> In-Reply-To: <008d01c6b4da$5143b5e0$6515a8c0@ics2003.local> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200608010929.00466.herve@elma.fr> X-Virus-Scanned: by amavis at elma.fr X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200608/1 X-Sequence-Number: 3572 Hi, I had the same trouble 6 years ago with my beginning of Postgresql ... 4 web and 1 db ... Just put a limitation in the php.ini ; Maximum number of persistent links. -1 means no limit. pgsql.max_persistent = 18 ; Maximum number of links (persistent+non persistent). -1 means no limit. pgsql.max_links = 18 It'll run perfectly ... for me it's like that since 6 years ... and I have thousand of visitor each day on my services :o) Regards, Le lundi 31 juillet 2006 21:48, Peter Hofer a écrit : > Hallo > > Need your help > > 1 got a Site runnig php 4.4.2 and postgresql (8.1.4) and > Follwing problem > > - 4 Server (Apache) up to 300 clients connection to the DB > - 1 DB machine > > So: > > - If I run with persisent, i got up to 1200 Connction and I run out > of memeory > > - if I run with no persisent connection i got massive forking of postgres > (but less problems) > > How can I build up a Pool of Connections ? > > What about "Pgpool" ? > > Thanks > > > > > > > > > > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 5: don't forget to increase your free space map settings -- Hervé Piedvache NOUVELLE ADRESSE - NEW ADDRESS : Elma Ingénierie Informatique 3 rue d'Uzès F-75002 - Paris - France Pho. 33-144949901 Fax. 33-144882747