Skip to content

[JENKINS-25284] SSH Slave with out of memory exception keeps failing builds #775

@jenkins-infra-bot

Description

@jenkins-infra-bot

Currently there is an issue with ssh slaves if an out of memory exception occurs on the slave machine, it would keep the slave in rotation and immediately fail any builds on the machine.

Possible solutions:

  • Monitor exceptions being returned by slave. If there is something like out of memory then execute a 'kill -9".
  • Add an option for the java process to execute: `-XX:OnOutOfMemoryError="kill -9 %p"` as this will kill the instance on OOME.

Originally reported by schristou, imported from: SSH Slave with out of memory exception keeps failing builds
  • assignee: ifernandezcalvo
  • status: Open
  • priority: Major
  • component(s): ssh-slaves-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 3
  • imported: 20251212-090250
Raw content of original issue

Currently there is an issue with ssh slaves if an out of memory exception occurs on the slave machine, it would keep the slave in rotation and immediately fail any builds on the machine.

Possible solutions:

  • Monitor exceptions being returned by slave. If there is something like out of memory then execute a 'kill -9".
  • Add an option for the java process to execute: `-XX:OnOutOfMemoryError="kill -9 %p"` as this will kill the instance on OOME.

Metadata

Metadata

Assignees

No one assigned
    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions