Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52374

Issue with unclosed LDAP connections

XMLWordPrintable

      On our environment we are observing a high number of threads waiting with the following stack:

      Thread-169"Thread-169" Id=277 Group=main WAITING on java.lang.Object@64e59be7
      	at java.base@10.0.1/java.lang.Object.wait(Native Method)
      	-  waiting on java.lang.Object@64e59be7
      	at java.base@10.0.1/java.lang.Object.wait(Object.java:328)
      	at java.naming@10.0.1/com.sun.jndi.ldap.Connection.pauseReader(Connection.java:771)
      	at java.naming@10.0.1/com.sun.jndi.ldap.Connection.run(Connection.java:911)
      	at java.base@10.0.1/java.lang.Thread.run(Thread.java:844)
      
      Thread-175"Thread-175" Id=283 Group=main WAITING on java.lang.Object@156aef27
      	at java.base@10.0.1/java.lang.Object.wait(Native Method)
      	-  waiting on java.lang.Object@156aef27
      	at java.base@10.0.1/java.lang.Object.wait(Object.java:328)
      	at java.naming@10.0.1/com.sun.jndi.ldap.Connection.pauseReader(Connection.java:771)
      	at java.naming@10.0.1/com.sun.jndi.ldap.Connection.run(Connection.java:911)
      	at java.base@10.0.1/java.lang.Thread.run(Thread.java:844)
      
      Thread-177"Thread-177" Id=285 Group=main WAITING on java.lang.Object@3df5e68a
      	at java.base@10.0.1/java.lang.Object.wait(Native Method)
      	-  waiting on java.lang.Object@3df5e68a
      	at java.base@10.0.1/java.lang.Object.wait(Object.java:328)
      	at java.naming@10.0.1/com.sun.jndi.ldap.Connection.pauseReader(Connection.java:771)
      	at java.naming@10.0.1/com.sun.jndi.ldap.Connection.run(Connection.java:911)
      	at java.base@10.0.1/java.lang.Thread.run(Thread.java:844)
      

      (dump from http://jenkinsurl/threadDump )

      The amount of similar waiting threads increases by 2 on every login and are not being closed leading to a "Too many open files" after a couple days, at that point 378 were waiting with the stack above.

      Please let me know if any further information is required to help solve/reproduce this issue.

       

            mramonleon Ramon Leon
            felipebrnd Felipe Nascimento
            Votes:
            4 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: