Jenkins - Free Swap Space 0

简介: Jenkins - Free Swap Space 0

Run the following command to see if your host has a swap file configured:

free|grep-iSwapSwap:            000

If you get "Swap: 0 0 0" like you see above your host has no swap configured.

Configure a swap file on your host

ddif=/dev/zeroof=swapfilebs=1Mcount=1Kmkswapswapfilesudochownroot:rootswapfilesudochmod600swapfilesudoswaponswapfile

Verify your swap is configured:

free|grep-iSwapSwap:      104857201048572

Good, we have a swap on the host.

Run your Jenkins docker by typing

dockerrun--privileged-p8080:8080--namejenkins-p50000:50000jenkins

Notice you must run the docker in privileged mode.

When you run your Jenkins docker in privileged mode the host's swap will be available inside the docker, so your Jenkins master will have a working swap.

If your host already has a working swap in place, all you will need to do is run the Jenkins docker in privileged mode.

目录
相关文章
|
7月前
|
存储 Linux
文件 inode 与 no space left on device 异常
文件 inode 与 no space left on device 异常
77 0
|
存储 缓存 算法
JVM虚拟机:内存区域详解(Eden Space、Survivor Space、Old Gen、Code Cache和Perm Gen)
JVM虚拟机:内存区域详解(Eden Space、Survivor Space、Old Gen、Code Cache和Perm Gen)
847 0
|
Linux Docker 容器
docker报 “no space left on device”(磁盘空间不足)问题解决方式
docker等命令报 “no space left on device”(磁盘空间不足)问题解决方式
2651 0
|
数据可视化 Java
CiteSpace的安装
CiteSpace的安装
292 0
关于catkin_init_workspace找不到命令的原因
关于catkin_init_workspace找不到命令的原因
565 3
关于catkin_init_workspace找不到命令的原因
|
存储 缓存 Ubuntu
free命令使用详解
free命令使用详解
197 0
free命令使用详解
|
应用服务中间件 nginx
no space left on device磁盘空间不足
no space left on device磁盘空间不足
343 0
|
算法 安全
内存分配管理之Largeobjectspace
内存分配管理之Largeobjectspace
133 0