re : PHP and persistent connections - Mailing list pgsql-novice

From
Subject re : PHP and persistent connections
Date
Msg-id 200011230803.eAN83uA36766@mail.postgresql.org
Whole thread Raw
Responses Re: re : PHP and persistent connections
List 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



pgsql-novice by date:

Previous
From: GH
Date:
Subject: PHP and persistent connections
Next
From: Andrew McMillan
Date:
Subject: Re: PHP and persistent connections