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

CLI calls are causing file descriptor leaks.

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

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

              People

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

                Dates

                Created:
                Updated:
                Resolved: