#36145 [Bgs->Opn]: ldap_bind() timeouts

From: Date: Tue, 24 Jan 2006 16:32:08 +0000
Subject: #36145 [Bgs->Opn]: ldap_bind() timeouts
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-92424@lists.php.net to get a copy of this message
 ID:               36145
 User updated by:  brage at zoo dot uib dot no
 Reported By:      brage at zoo dot uib dot no
-Status:           Bogus
+Status:           Open
 Bug Type:         LDAP related
 Operating System: FreeBSD 5.4-STABLE AMD64
 PHP Version:      4.4.2
 New Comment:

That does not seem likely.

It is reproducible with an apache process serving no other request than
a single request to the test page. Also the number of virtualhosts
needed to reproduce the problem is fairly low ( < 15, but with own log
files). 

A ktrace of the request gives a 1.3GB kdump file with 8 million 
select()-calls before the request dies from a timeout after 60 seconds.


Previous Comments:
------------------------------------------------------------------------

[2006-01-24 16:20:53] sniper@php.net

It's just your server hitting it's limit..

------------------------------------------------------------------------

[2006-01-24 16:18:49] brage at zoo dot uib dot no

Description:
------------
I am experiencing exactly the same problem as described in 
Bug #34892 (Process hang on LDAP operations).

The system is
 - FreeBSD 5.4-STABLE AMD64 (SMP)
 - OpenLDAP Client libraries 2.2.30
 - PHP 4.4.2 

On ldap_bind() the system goes into a select-loop and uses all
available cpu until timeout.

The problem is only present when I have many open virtual servers, if I
reduce the number of active virtualhosts the problem disappears.  The
CLI version also works fine.


Reproduce code:
---------------
See bug #34892.




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=36145&edit=1


Thread (8 messages)

« previous php.bugs (#92424) next »