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

File descriptor leak - changelog.xml

    Details

    • Similar Issues:

      Description

      Jenkins is occasionally failing to load the index page and complains about "Too many open files". Looking at the open files, I see around 7000 such as this one:

      /xxxx/jenkins/jenkins_home/jobs/xxxx/jobs/messages/builds/2012-08-16_03-38-51/changelog.xml

      This is a rather large public Jenkins instance which is no doubt crawled by search engines.

        Attachments

          Activity

          Hide
          jglick Jesse Glick added a comment -

          All the SCMs are Git, so it is likely either GitChangeLogParser or GitSCM.computeChangeLog that is responsible for the leak. I suspect the latter; it is not obvious from reading the code that its finally block works in all cases.

          Show
          jglick Jesse Glick added a comment - All the SCMs are Git, so it is likely either GitChangeLogParser or GitSCM.computeChangeLog that is responsible for the leak. I suspect the latter; it is not obvious from reading the code that its finally block works in all cases.
          Hide
          recampbell Ryan Campbell added a comment -

          It turns out that these were not leaks, it was just a case of a spider going through user/*/builds which was causing excessive parsing of changelogs.

          Show
          recampbell Ryan Campbell added a comment - It turns out that these were not leaks, it was just a case of a spider going through user/*/builds which was causing excessive parsing of changelogs.

            People

            • Assignee:
              Unassigned
              Reporter:
              recampbell Ryan Campbell
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: