Hi, I recently was asked to take over supporting Jenkins for our company and to be honest, it’s a bit over my head so any help would be very appreciated.
Jenkins Version: 2.361.1
Running 9 Nodes
Built-in node - disabled
We have one node (Node01) that has no free swap space and our engineering team is indicating they are getting OSError: [Errno 28] No space left on device
This is a Linux (Ubuntu) Node is set up for 5 executors. They have asked for me to increase memory on the node to allow builds to run and complete.
I’ve been searching and I’m very confused about the best way to increase memory as it’s only the one build node that is affected. The team is building on Node02 at the moment and that is working.
When I run “systemctl edit jenkins” its a blank file with no environment variables.
When stopping jenkins, we do use systemctl stop jenkins, but then i need to kill the Java process after to actually get it to stop so something seems a bit wonky.
Viewing view /etc/sysconfig/jenkins
, i do see the JENKINS_JAVA_OPTIONS setting which has the following settings.
JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true"
running jps -lv command i see the following output
3374542 /usr/lib/jenkins/jenkins.war -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins
2244301 sun.tools.jps.Jps -Dapplication.home=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.292.b10-0.el8_3.x86_64 -Xms8m
Is /etc/sysconfig/jenkins the area to increase general memory? Our controller server has 16 GB of memory available.
Since its just the one Node that is out of free swap memory do I need to set an environment variable on the specific node (Node01) to utilize a specific amount of memory?
Anything will be helpful as i have no idea where to start since our set up seems different from the documentation by cloudbees which is what i was following.