• Icon: Patch Patch
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • Hudson version 1.352 on RHEL 3

      We have Hudson configured to launch builds on a number of slave machines. After running for a few days, jobs start failing with the following exception:

      SEVERE: Unable to launch the slave agent for RHEL 3 JDK 5
      java.io.IOException: Cannot run program "/scripts/bin/launch.sh":
      java.io.IOException: error=24, Too many open files
      at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)

      The lsof command shows hundreds of opened slave log files (~/.hudson/slave-XYZ.log).

      We tracked down this issue in the source code to the methods SlaveComputer._connect() and SlaveComputer.disconnect(). See attached patch for details.

          [JENKINS-6137] Slave agent launcher leaks file descriptors

          alban4 created issue -
          Alan Harder made changes -
          Issue Type Original: Bug [ 1 ] New: Patch [ 5 ]

          Code changed in hudson
          User: : kohsuke
          Path:
          trunk/hudson/main/core/src/main/java/hudson/slaves/SlaveComputer.java
          trunk/www/changelog.html
          http://jenkins-ci.org/commit/29663
          Log:
          [FIXED JENKINS-6137] in 1.354. Thanks for the patch!

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : kohsuke Path: trunk/hudson/main/core/src/main/java/hudson/slaves/SlaveComputer.java trunk/www/changelog.html http://jenkins-ci.org/commit/29663 Log: [FIXED JENKINS-6137] in 1.354. Thanks for the patch!
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Andrew Bayer made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 136230 ] New: JNJira + In-Review [ 203918 ]

            Unassigned Unassigned
            alban4 alban4
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: