[Auth_ldap] Another memory leak?

Dave Carrigan dave at rudedog.org
Fri Dec 15 08:29:54 PST 2000


<jean-jacques.de-jong at st.com> writes:

>      Just another remark. In the access logs of our LDAP server, it appears 
>      that each authentication opens an LDAP connection but never closes it. 
>      Eventually the connection is closed after a time-out. Could the hang 
>      be due to too many open connections?

This is deliberate. Each httpd caches its open LDAP connections for
performance reasons. It uses the hostname provided in the LDAP URL as
the key. It does not open an ldap connection for every
authentication. It opens one once. That does imply an extra open
filehandle for each httpd.

-- 
Dave Carrigan (dave at rudedog.org)            | Yow! When I met th'POPE back in
UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | '58, I scrubbed him with a MILD
Seattle, WA, USA                            | SOAP or DETERGENT for 15
http://www.rudedog.org/                     | minutes.  He seemed to enjoy
                                            | it..



More information about the Auth_ldap mailing list