Hi !
I solved this problem. The list, where persistent database
connections are cached, is thread local. Since the Win32 release of
Apache is muli-threading with a default parameter of 50 active threads
and the incoming requests are dispatched to the threads in alternating
order, it takes 50 requests before the first persistent connection is to
be re-used. I decreased the 'ThreadsPerChild' value in 'httpd.conf' to
5, and - Miracle! - after the fifth request the connections are going
to be re-used.
Wolfgang.
Wolfgang Hege wrote:
> I have following problem when connecting to Interbase:
>
> When trying to establish a persistent connection using
> 'ibase_pconnect()', a new connection is created each time. The database
> connection remains open, but it will not be re-used later. So I have
> loads of database connections and a huge performance problem.
>
> My environment:
> - WinNT 4.0 SP5
> - Apache 1.3.19
> - PHP/4.0.4pl1 ( loaded as module )
> - Interbase 6.0
>
> Does anybody know some help ?
>
> Thank you very much.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]