jenkinsci / jenkinsci/ssh-agents-plugin
[JENKINS-25284] SSH Slave with out of memory exception keeps failing builds
- 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
ifernandezcalvo
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
Assessment
This issue has not been assessed yet.