DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23548>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23548

prefork model on solaris 2.6 mod_ldap leaves connections to ldap in close_wait

           Summary: prefork model on solaris 2.6 mod_ldap leaves connections
                    to ldap in close_wait
           Product: Apache httpd-2.0
           Version: 2.0.47
          Platform: Sun
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_ldap
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


We are running apache 2.0.47 in prefork model on solaris 2.6 and solaris 2.8. 
We are using the 
ldap authenticator which is still in experimental mode using the NETSCAPE C 
libraries (without 
SSL).

Authentication to ldap using .htaccess files occurs flawlessly.  Each apache 
child holds open a 
connection to ldap on port 389 for the specified length of time.  However, when 
that time expires 
or the port 389 connection is closed, the apache child does not reap the 
connection and it remains 
stuck in close_wait.

Eventually Apache reaches the file descriptor limit (set to 64) and stop 
accepting new connections.  
We don't want to raise the FD limit we would like to get to the root cause.  
Any ideas?

We do not see this on solaris 2.8!

APPENDIX (error log , truss, lsof output from parent and children).
========
ERROR LOG INDICATES THE SYMPTOM:

Tue Sep 30 18:40:48 2003] [error] [client 10.0.0.2] (24)Too many open files

TRUSS of parent seems normal:

15598:  poll(0xEFFFDA90, 0, 1000)                       = 0
15598:  waitid(7, 0, 0xEFFFF9A0, 0107)                  = 0
15598:        siginfo: SIG#0
15598:  poll(0xEFFFDA90, 0, 1000)                       = 0
15598:  waitid(7, 0, 0xEFFFF9A0, 0107)                  = 0
15598:        siginfo: SIG#0
15598:  poll(0xEFFFDA90, 0, 1000)                       = 0
15598:  waitid(7, 0, 0xEFFFF9A0, 0107)                  = 0
15598:        siginfo: SIG#0
(SO ON AND SO FORTH)

LSOF OF A CHILD SHOWS THE STUCK CLOSE_WAITS:
COMMAND  PID     USER   FD   TYPE     DEVICE SIZE/OFF      NODE NAME
apache2047   5435 www    9u  inet 0x90c4c9d8     0t37       TCP 
solars2.6:80->eam-
sj2.cisco.com:37648 (CLOSE_WAIT)
apache2047   5435 www   10u  inet 0x9278db10    0t427       TCP 
solars2.6:50616->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   11u  inet 0xad5a3958    0t386       TCP 
solars2.6:50627->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   12u  inet 0x83b41ec8   0t1612       TCP 
solars2.6:50630->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   13u  inet 0x7e1cf160    0t744       TCP 
solars2.6:50666->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   14u  inet 0x7231f7c8   0t3507       TCP 
solars2.6:50670->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   15u  inet 0xad5a2f58    0t361       TCP 
solars2.6:51412->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   16u  inet 0x76985e38  0t12054       TCP 
solars2.6:35189->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   17u  inet 0x9278aa88    0t333       TCP 
solars2.6:37367->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   18u  inet 0x7d6771c0   0t5455       TCP 
solars2.6:40510->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   19u  inet 0x81a710f8   0t3548       TCP 
solars2.6:41520->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   20u  inet 0x7e1cfc60   0t6510       TCP 
solars2.6:41536->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   21u  inet 0x90c74a78    0t732       TCP 
solars2.6:43119->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   22u  inet 0x71cee450   0t6255       TCP 
solars2.6:52432->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   23u  inet 0x759de7d0    0t366       TCP 
solars2.6:53967->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   24u  inet 0x839526b8   0t3942       TCP 
solars2.6:56627->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   25u  inet 0x83b435d0    0t366       TCP 
solars2.6:57230->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   26u  inet 0x9c7aaeb8    0t422       TCP 
solars2.6:57249->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   27u  inet 0x72b4bd58    0t366       TCP 
solars2.6:57250->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   28u  inet 0x83b40548    0t821       TCP 
solars2.6:57267->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   29u  inet 0x9278cd90    0t366       TCP 
solars2.6:57348->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   30u  inet 0x83861140   0t8091       TCP 
solars2.6:57513->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   31u  inet 0x9c79aeb0    0t380       TCP 
solars2.6:58749->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   32u  inet 0x83950730   0t4662       TCP 
solars2.6:58776->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   33u  inet 0x81a70ff8    0t380       TCP 
solars2.6:59546->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   34u  inet 0x7072d540    0t810       TCP 
solars2.6:59555->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   35u  inet 0x9278a388    0t366       TCP 
solars2.6:59559->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   36u  inet 0x83860440    0t403       TCP 
solars2.6:59576->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   37u  inet 0xad6ab4e8    0t380       TCP 
solars2.6:59640->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   38u  inet 0xad6aaf68   0t3142       TCP 
solars2.6:59643->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   39u  inet 0x7dca54f8   0t1084       TCP 
solars2.6:60061->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   40u  inet 0x96072850    0t817       TCP 
solars2.6:60070->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   41u  inet 0x7e1cf560    0t380       TCP 
solars2.6:60141->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   42u  inet 0x83b42fd0   0t1589       TCP 
solars2.6:60159->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   43u  inet 0x7dca8a88    0t380       TCP 
solars2.6:60375->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   44u  inet 0x9c799310   0t3202       TCP 
solars2.6:60385->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   45u  inet 0xad67ba60    0t732       TCP 
solars2.6:61203->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   46u  inet 0x83950f30   0t2381       TCP 
solars2.6:61243->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   47u  inet 0xad6b2af0    0t746       TCP 
solars2.6:61359->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   48u  inet 0x7d6775c0   0t4131       TCP 
solars2.6:61380->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   49u  inet 0x90c4d9d8    0t386       TCP 
solars2.6:61741->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   50u  inet 0x90c74278  0t14254       TCP 
solars2.6:61756->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   51u  inet 0x9278c410   0t2164       TCP 
solars2.6:63803->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   52u  inet 0x7072c0c0    0t420       TCP 
solars2.6:63816->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   53u  inet 0x9c797188   0t1096       TCP 
solars2.6:63822->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   54u  inet 0x769844b8    0t420       TCP 
solars2.6:63843->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   55u  inet 0x7e1d5de8    0t384       TCP 
solars2.6:63865->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   56u  inet 0x7e1d54e8   0t3558       TCP 
solars2.6:64149->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   57u  inet 0xad6b2bf0    0t646       TCP 
solars2.6:64641->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   58u  inet 0x83950230   0t4721       TCP 
solars2.6:65486->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   59u  inet 0x7231e748    0t366       TCP 
solars2.6:32822->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   60u  inet 0x90c75578    0t427       TCP 
solars2.6:35352->netscape-
ldap:389 (CLOSE_WAIT)
apache2047   5435 www   61r  VREG  138,99002        0     16128 /fs/apache2047 
(/dev/vx/dsk/
ccodg/apache2047vol)
apache2047   5435 www   62u  FIFO 0x76dff700      0t0   5476979 PIPE->0x76dff784

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to