I have a job that dynamically creates jobs using the CLI. I have noticed that since installing the job, which verifies the existing of jobs by calling 'get-job', Jenkins is leaking file descriptors. I am currently making around 40 calls per build, which runs on every CVS commit. I have a job setup to monitor the number of FD's in /proc/$jenkins_pid/fd. Calling garbage collection in the JVM doesn't release the FD's and thus the only cure is to restart Jenkins before the number of files reaches the Open file ulimit. I have set my ulimit to 65356 so I don't have to reboot so frequently. I restarted Jenkins at 7:49 this morning and the file descriptor count is currently at 6147 files; it's now 12:10 in the afternoon, so it's been steadily leaking FD's at approximately 1500 per hour.

          [JENKINS-23248] CLI calls are causing file descriptor leaks.

          Craig Phillips created issue -
          Craig Phillips made changes -
          Attachment New: jkfd.txt [ 26025 ]
          Daniel Beck made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: cli [ 15624 ]
          Labels Original: jenkins New: remoting
          Daniel Beck made changes -
          Link New: This issue is related to JENKINS-23572 [ JENKINS-23572 ]
          Kohsuke Kawaguchi made changes -
          Assignee New: Kohsuke Kawaguchi [ kohsuke ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Kohsuke Kawaguchi made changes -
          Summary Original: CLI: get-job calls are causing file descriptor leaks. New: CLI calls are causing file descriptor leaks.
          Daniel Beck made changes -
          Labels Original: remoting New: lts-candidate remoting
          Oliver Gondža made changes -
          Labels Original: lts-candidate remoting New: 1.565.3-fixed remoting
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 155810 ] New: JNJira + In-Review [ 195254 ]

            kohsuke Kohsuke Kawaguchi
            iwonbigbro Craig Phillips
            Votes:
            0 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: