From 3429dcf1a258008d5e926bcfa92fffd2d3dcc182 Mon Sep 17 00:00:00 2001 From: Jonah Graham Date: Sat, 19 Aug 2023 17:11:53 -0400 Subject: [PATCH] Allocate much more ram to the Pod on Jenkins I think with some of the recent changes (Tycho 4, API baselines, maybe even new dependency on Platform M3) it may be that our memory requirements have gone up substantially for the build. Also, with Sonar in the works that also requires more memory. Therefore see if the EF's JIPP infra will allocate 10G of ram to our build. This should fix all the "Killed" messages randomly in the CDT builds. https://wiki.eclipse.org/Jenkins#What_is_killing_my_build.3F_I.27m_using_custom_containers.21 --- Jenkinsfile | 4 ++-- jenkins/pod-templates/cdt-full-pod-plus-eclipse-install.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6e2df2e9a14..52eb91c921d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,7 +22,7 @@ pipeline { steps { container('cdt') { timeout(activity: true, time: 30) { - withEnv(['MAVEN_OPTS=-XX:MaxRAMPercentage=85.0 -XX:+PrintFlagsFinal']) { + withEnv(['MAVEN_OPTS=-XX:MaxRAMPercentage=50.0 -XX:+PrintFlagsFinal']) { sh 'MVN="/jipp/tools/apache-maven/latest/bin/mvn -Dmaven.repo.local=/home/jenkins/.m2/repository \ --settings /home/jenkins/.m2/settings.xml" ./releng/scripts/check_code_cleanliness_only.sh' } @@ -34,7 +34,7 @@ pipeline { steps { container('cdt') { timeout(activity: true, time: 20) { - withEnv(['MAVEN_OPTS=-XX:MaxRAMPercentage=85.0 -XX:+PrintFlagsFinal']) { + withEnv(['MAVEN_OPTS=-XX:MaxRAMPercentage=50.0 -XX:+PrintFlagsFinal']) { withCredentials([string(credentialsId: 'gpg-passphrase', variable: 'KEYRING_PASSPHRASE')]) { sh '''/jipp/tools/apache-maven/latest/bin/mvn \ clean verify -B -V \ diff --git a/jenkins/pod-templates/cdt-full-pod-plus-eclipse-install.yaml b/jenkins/pod-templates/cdt-full-pod-plus-eclipse-install.yaml index 7728bee973e..f84000f1930 100644 --- a/jenkins/pod-templates/cdt-full-pod-plus-eclipse-install.yaml +++ b/jenkins/pod-templates/cdt-full-pod-plus-eclipse-install.yaml @@ -8,10 +8,10 @@ spec: args: ["/bin/sh", "-c", "/home/vnc/.vnc/xstartup.sh && cat"] resources: requests: - memory: "2662Mi" + memory: "10000Mi" cpu: "1" limits: - memory: "2662Mi" + memory: "10000Mi" cpu: "1" volumeMounts: - name: settings-xml