I have a Maven project, which builds 6 separate Maven projects in Jenkins. The problem I face is that over the time the project build fails giving the 137 error code:
I believe you should increase the values of the memory settings - in MAVEN_OPTS on the Jenkins machine, e.g.
MAVEN_OPTS
MAVEN_OPTS=-Xmx1.5G -XX:MaxPermSize=0.7G