I have a Jenkins running that shall build a Java project of which I know that some of the Unit-Tests are quite RAM greedy.
I think I still got something wrong with the Jenkins memory-assignments, some of my Jobs are failing with an OOM exception, more specifically Java Heap Space.
I gave Jenkins itself 2GB by editing the /etc/default/jenkins file. To ensure that the JUnit-Tests also have enough RAM I assigned as Global MAVEN_OPTS the value -Dmaven.surefire.heap=12g via the Jenkins GUI.
This should be enough to run all tests. But the build is still failing. I am new to Jenkins, so I would appreciate a pointer what could be the issue here.