From: Hervé Piedvache <herve@elma.fr>
To: pgsql-php@postgresql.org
To: peter.hofer@ics.at
Subject: Re: connection pool
Date: Tue, 1 Aug 2006 09:29:00 +0200
Message-ID: <200608010929.00466.herve@elma.fr> (raw)
In-Reply-To: <008d01c6b4da$5143b5e0$6515a8c0@ics2003.local>
References: <008d01c6b4da$5143b5e0$6515a8c0@ics2003.local>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: herve@elma.fr, peter.hofer@ics.at
Subject: Re: connection pool
In-Reply-To: <200608010929.00466.herve@elma.fr>
References: <008d01c6b4da$5143b5e0$6515a8c0@ics2003.local> <200608010929.00466.herve@elma.fr>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox