re : PHP and persistent connections

From: <pejac(at)altern(dot)org>
To: pgsql-novice(at)postgresql(dot)org
Subject: re : PHP and persistent connections
Date: 2000-11-23 15:53:35
Message-ID: 200011230803.eAN83uA36766@mail.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Set the number of connection in php.ini to 2

Exemple :
[PostgresSQL]
pgsql.allow_persistent = On ; allow or prevent persistent link
pgsql.max_persistent = 2 ; maximum number of persistent links. -1
means no limit
pgsql.max_links = 2 ; maximum number of links (persi
stent+non persistent). -1 means no limit

Because if you keep the default value each apache process
has an ulimited number of connection. So if your
httpd start with 10 child process you have 20 persistent connections. So be carefull about the number of apache
process and check the value of persistent connection
in php.ini in order to adjust it.

Cheers

PEJAC Pascal

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message GH 2000-11-23 16:14:17 Re: re : PHP and persistent connections
Previous Message Eduardo Kotujansky 2000-11-23 12:28:58 startup script for FreeBSD