re : PHP and persistent connections

Поиск
Список
Период
Сортировка
От
Тема re : PHP and persistent connections
Дата
Msg-id 200011230803.eAN83uA36766@mail.postgresql.org
обсуждение исходный текст
Ответы Re: re : PHP and persistent connections
Список 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 по дате отправления:

Предыдущее
От: GH
Дата:
Сообщение: PHP and persistent connections
Следующее
От: Andrew McMillan
Дата:
Сообщение: Re: PHP and persistent connections