Interview Prep/CI/CD/Jenkins Build and Agent Failures

`ERROR: Maven JVM terminated unexpectedly with exit code 137`.

IntermediateTroubleshootingJenkins Build and Agent Failures
Answer

Likely causes → Surefire forks plus JVM heap exceed container memory.

Diagnose → Check dmesg/pod OOMKilled; look at -Xmx versus limit.

Fix → Lower fork count (-DforkCount=1), set heap below the container limit, give more memory.

Prevent → JVM flag -XX:MaxRAMPercentage=70.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Jenkins Build and Agent Failures