jenkinsci / jenkinsci/ssh-agents-plugin

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

Open
#775 1 comment 0 reactions 0 assignees View on GitHub
component:ssh-slaves-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
115
Forks
141
PR merge metrics
No merged PRs in 30d

Description

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.


Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.