Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

663
Views
Kubernetes Jenkins swap space issue

Jenkins is failing to build due to "Free Swap Space" being 0. I don't know how to fix that. The build process keeps hanging. Here part of the output:

enter image description here

enter image description here

When I ssh into the instance and docker info I get a WARNING: No swap limit support.

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Your screenshot shows "waiting for next available executor" so try increasing the number of executors in jenkins ("Manage Jenkins" -> "Configure System" -> "# of executors").

Also here the info how to create Swapfile (for avoiding out of memory on building large docker containers etc.). The example creates 4G swapfile at location /myswap :

sudo dd if=/dev/zero of=/myswap count=4096 bs=1MiB
sudo chmod 600 /myswap
sudo mkswap /myswap
sudo swapon /myswap

to check swap is working:

swapon -s

enable swap at boot, add line to fstab file:

sudo nano /etc/fstab

Add this line:

/myswap   swap    swap    sw  0   0
over 4 years ago · Santiago Trujillo Report

0

Lack of swap does not prevent building. If you are using kubernetes (given the tag in your question) you need to look at the Jenkins log, it will say why a container could not be created

over 4 years ago · Santiago Trujillo Report

0

Kubernetes strongly recommends to disable swap on nodes, so it's ok that free swap space is shown as 0B.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!