Uploaded image for project: 'LDAP'
  1. LDAP
  2. LDAP-76

LDAP authenticator runs 1500+ threads - possible memory leak

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 9.3.7
    • Fix Version/s: None
    • Component/s: Authenticator
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      I'm fighting against periodic XWiki hangs. When application becomes unresponsive, I generate java threads dump and see 1500+ threads like this:

      "Thread-325900" #325988 daemon prio=5 os_prio=0 tid=0x00007f3f9ce56800 nid=0x773 runnable [0x00007f3ee500a000]"Thread-325900" #325988 daemon prio=5 os_prio=0 tid=0x00007f3f9ce56800 nid=0x773 runnable [0x00007f3ee500a000]   
      java.lang.Thread.State: RUNNABLE 
      at java.net.SocketInputStream.socketRead0(Native Method) 
      at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) 
      at java.net.SocketInputStream.read(SocketInputStream.java:171) at java.net.SocketInputStream.read(SocketInputStream.java:141) 
      at java.net.SocketInputStream.read(SocketInputStream.java:224) 
      at com.novell.ldap.asn1.ASN1Identifier.<init>(ASN1Identifier.java:129) 
      at com.novell.ldap.Connection$ReaderThread.run(Connection.java:1269) 
      at java.lang.Thread.run(Thread.java:748)

       

      Authentication itself works perfectly. Any clue why does it spawn so many threads ? It makes the XWiki almost unsuitable for production use. I have to restart it 3-4 times a day.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                unadequate Michael C
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Date of First Response: