Slave agent launcher leaks file descriptors

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Patch
    • Resolution: Fixed
    • Priority: Major
    • Component/s: core
    • Environment:
      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.

            Assignee:
            Unassigned
            Reporter:
            alban4
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: