Skip to content

[JENKINS-6137] Slave agent launcher leaks file descriptors #19476

Closed

Description

@jenkins-infra-bot

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.


Originally reported by alban4, imported from: Slave agent launcher leaks file descriptors
  • status: Closed
  • priority: Major
  • component(s): core
  • resolution: Fixed
  • resolved: 2010-03-31T14:32:17+00:00
  • votes: 0
  • watchers: 0
  • imported: 2025-11-24
Raw content of original issue

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.

  • environment: Hudson version 1.352 on RHEL 3
1 attachment

Activity

  1. jenkins-infra-bot commented on Mar 31, 2010

    @jenkins-infra-bot
    Author
    scm_issue_link:
    • Original comment link
    • Raw content of original 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!

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions