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

Leaking file descriptors with junitParser

XMLWordPrintable

      Ssince recently we are running in a 'too many open files' issue on our jnlp agent build nodes (the Jenkins server itself is fine). All the file descriptors 'leaking' are for the junit/surefire reports of our maven builds. Disabling the junitParser from the warnings-ng-plugin seems to resolve the issue.

      Browsing the code I wonder if there is a close call missing in the JunitAdapter count method (analysis model plugin: https://github.com/jenkinsci/analysis-model/blob/master/src/main/java/edu/hm/hafner/analysis/parser/violations/JUnitAdapter.java#L45). Other calls to readStream seem to be wrapped in a try-with-resources, like https://github.com/jenkinsci/analysis-model/blob/master/src/main/java/edu/hm/hafner/analysis/parser/AjcParser.java#L30.

            sverre_boschman Sverre Boschman
            sverre_boschman Sverre Boschman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: