Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

659
Visualizações
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.

about 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

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
about 4 years ago · Santiago Trujillo Relatório

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

about 4 years ago · Santiago Trujillo Relatório

0

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

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda