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

Jenkins controller leaks file descriptors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • Jenkins 2.263.2
      Custom Job Icon plugin 0.2
      Simple Theme Plugin 0.6
      Ubuntu 14.04.5 LTS
      Google Chrome 87.0.4280.141
    • 2.276 and 2.263.3

      Since upgrading to jenkins 2.263.2, we are experiencing file descriptor leaks with images used by Simple Theme Plugin and Custom Job Icon Plugin.

       

      Every time a page on the web ui containing locally hosted images is refreshed, a file descriptor is opened (and never closed). 

      The following leaked file descriptors were obtained by refreshing over and over the Jenkins system configuration page on Chrome web browser:

       
      jenkins@XXXXX:~$  ls -ltra /proc/14876/fd | grep customIcon
       lr-x------ 1 jenkins jenkins 64 Jan 14 21:06 1152 -> /var/lib/jenkins/userContent/customIcon/beaker-512.png
       lr-x------ 1 jenkins jenkins 64 Jan 14 21:06 1240 -> /var/lib/jenkins/userContent/customIcon/559b2f19c5a40e547b1c1a3263bebf5fe96cc9e9.png
       lr-x------ 1 jenkins jenkins 64 Jan 14 21:07 1149 -> /var/lib/jenkins/userContent/customIcon/559b2f19c5a40e547b1c1a3263bebf5fe96cc9e9.png
       lr-x------ 1 jenkins jenkins 64 Jan 14 21:08 1243 -> /var/lib/jenkins/userContent/customIcon/f2b33c9067724d14263126252fbf1246e070a3d6.png
       lr-x------ 1 jenkins jenkins 64 Jan 14 21:10 1253 -> /var/lib/jenkins/userContent/customIcon/beaker-512.png
       lr-x------ 1 jenkins jenkins 64 Jan 14 21:13 1247 -> /var/lib/jenkins/userContent/customIcon/559b2f19c5a40e547b1c1a3263bebf5fe96cc9e9.png
       lr-x------ 1 jenkins jenkins 64 Jan 14 21:13 1254 -> /var/lib/jenkins/userContent/customIcon/f2b33c9067724d14263126252fbf1246e070a3d6.png
       lr-x------ 1 jenkins jenkins 64 Jan 14 21:13 1252 -> /var/lib/jenkins/userContent/customIcon/f55de89dd0b4f93588e14dd56903fc206c85f08d.png
       lr-x------ 1 jenkins jenkins 64 Jan 14 21:13 1251 -> /var/lib/jenkins/userContent/customIcon/f2b33c9067724d14263126252fbf1246e070a3d6.png
       lr-x------ 1 jenkins jenkins 64 Jan 14 21:13 1250 -> /var/lib/jenkins/userContent/customIcon/beaker-512.png
       lr-x------ 1 jenkins jenkins 64 Jan 14 21:13 1249 -> /var/lib/jenkins/userContent/customIcon/559b2f19c5a40e547b1c1a3263bebf5fe96cc9e9.png
       lr-x------ 1 jenkins jenkins 64 Jan 14 21:13 1248 -> /var/lib/jenkins/userContent/customIcon/559b2f19c5a40e547b1c1a3263bebf5fe96cc9e9.png
       lr-x------ 1 jenkins jenkins 64 Jan 14 21:13 1255 -> /var/lib/jenkins/userContent/customIcon/f55de89dd0b4f93588e14dd56903fc206c85f08d.png
       lr-x------ 1 jenkins jenkins 64 Jan 14 21:14 1256 -> /var/lib/jenkins/userContent/customIcon/beaker-512.png
       lr-x------ 1 jenkins jenkins 64 Jan 14 21:15 1242 -> /var/lib/jenkins/userContent/customIcon/559b2f19c5a40e547b1c1a3263bebf5fe96cc9e9.png
       lr-x------ 1 jenkins jenkins 64 Jan 14 21:16 1260 -> /var/lib/jenkins/userContent/customIcon/beaker-512.png
       lr-x------ 1 jenkins jenkins 64 Jan 14 21:16 1259 -> /var/lib/jenkins/userContent/customIcon/beaker-512.png
       lr-x------ 1 jenkins jenkins 64 Jan 14 21:16 1258 -> /var/lib/jenkins/userContent/customIcon/f55de89dd0b4f93588e14dd56903fc206c85f08d.png
       lr-x------ 1 jenkins jenkins 64 Jan 14 21:16 1257 -> /var/lib/jenkins/userContent/customIcon/f2b33c9067724d14263126252fbf1246e070a3d6.png
       lr-x------ 1 jenkins jenkins 64 Jan 14 21:17 1263 -> /var/lib/jenkins/userContent/customIcon/f55de89dd0b4f93588e14dd56903fc206c85f08d.png
       lr-x------ 1 jenkins jenkins 64 Jan 14 21:17 1262 -> /var/lib/jenkins/userContent/customIcon/f2b33c9067724d14263126252fbf1246e070a3d6.png
       lr-x------ 1 jenkins jenkins 64 Jan 14 21:17 1261 -> /var/lib/jenkins/userContent/customIcon/f55de89dd0b4f93588e14dd56903fc206c85f08d.png
       lr-x------ 1 jenkins jenkins 64 Jan 14 21:18 1268 -> /var/lib/jenkins/userContent/customIcon/f2b33c9067724d14263126252fbf1246e070a3d6.png
       lr-x------ 1 jenkins jenkins 64 Jan 14 21:18 1269 -> /var/lib/jenkins/userContent/customIcon/f55de89dd0b4f93588e14dd56903fc206c85f08d.png
      

       

       

      The same thing happens on other jenkins web pages, with all images contained in a custom CSS used by the Simple Theme Plugin.

       

      Downgrading to Jenkins 2.263.1 solves the problem.

      Reinstalling Jenkins 2.263.2 brings the problem back.

       

            wfollonier Wadeck Follonier
            mhtouchette Marie-Helene Touchette
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: