Too many open files caused Jenkins crashed

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      When we upgrade Jenkins core from the 2.73.3 to 2.89.4 and 2.89.4 to 2.107.3 the Jenkins start to leak file handles (also used plugins was updated), see attached pictures created by Monitoring pluging. The linux lsof command shows that Jenkins leaks TCP sockets:

      ...
      java    29737 jenkins 1244u     sock                0,7       0t0  24524616 protocol: TCP
      java    29737 jenkins 1245u     sock                0,7       0t0  17683939 protocol: TCP
      java    29737 jenkins 1246u     sock                0,7       0t0  95469787 protocol: TCP
      java    29737 jenkins 1247u     sock                0,7       0t0  90579011 protocol: TCP
      java    29737 jenkins 1248u     sock                0,7       0t0  33329570 protocol: TCP
      ...
      

      We can't use Open File Handle plugin to detect who leaks handles because we don't use required JDK (getting oops).

       

       

        1. Jenkins-2.73.3-no-leaks.png
          34 kB
          Tapio Reijonen
        2. Jenkins-2.89.4-leaks.png
          36 kB
          Tapio Reijonen
        3. Jenkins-2.107.3-leaks.png
          40 kB
          Tapio Reijonen
        4. jenkins2_plugins_2018-09-28.txt
          15 kB
          Tapio Reijonen

            Assignee:
            Oleg Nenashev
            Reporter:
            Tapio Reijonen
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: