# Disk space below threshold

**URL:** <https://community.jenkins.io/t/disk-space-below-threshold/11942>\
**Category:** Using Jenkins\
**Created:** [January 22, 2024, 4:19pm UTC](https://community.jenkins.io/t/disk-space-below-threshold/11942 "2024-01-22T16:19:39Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![srnatan](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@srnatan](https://community.jenkins.io/u/srnatan)\
**Post date:** [January 22, 2024, 4:19pm UTC](https://community.jenkins.io/t/disk-space-below-threshold/11942/1 "2024-01-22T16:19:39Z")

</div>

Hello everyone,  
I am new to Jenkins and I have a problem.  
I have created a cloud for amazon.  
I have configured the ami to create the agents, but every time it is deployed I get “Disk space is below threshold of 1.00 GiB. Only 473.34 MiB out of 474.81 MiB left on /tmp.”  
I have jenkins running on a docker image on ec2, which is a t2micro with 8GB.

If I do df -h on the ec2 containing docker I see no space problems.  
Filesystem Size Used Avail Use% Mounted on  
devtmpfs 4.0M 0 4.0M 0% /dev  
tmpfs 475M 0 475M 0% /dev/shm  
tmpfs 190M 3.0M 187M 2% /run  
/dev/xvda1 8.0G 4.2G 3.8G 53% /  
tmpfs 475M 0 475M 0% /tmp  
/dev/xvda128 10M 1.3M 8.7M 13% /boot/efi  
tmpfs 95M 0 95M 0% /run/user/1000

If I do the df -h on the agent, which is created, there are no space problems either.  
Filesystem Size Used Avail Use% Mounted on  
devtmpfs 4.0M 0 4.0M 0% /dev  
tmpfs 475M 0 475M 0% /dev/shm  
tmpfs 190M 2.9M 188M 2% /run  
/dev/xvda1 8.0G 1.9G 6.2G 23% /  
tmpfs 475M 1.5M 474M 1% /tmp  
/dev/xvda128 10M 1.3M 8.7M 13% /boot/efi  
tmpfs 95M 0 95M 0% /run/user/1000

Can anyone help me? Thanks!

---

<div class="post-metadata">

**Author:** ![mawinter69](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/mawinter69/32/1625_2.png) [@mawinter69](https://community.jenkins.io/u/mawinter69)\
**Post date:** [January 22, 2024, 4:37pm UTC](https://community.jenkins.io/t/disk-space-below-threshold/11942/2 "2024-01-22T16:37:31Z")

</div>

You only have 475MiB free space on the /tmp partition, nowadays this is almost nothing. Jenkins has a default of 1GiB for free disk space. You can disable the free tmp space monitor by going to `computer/configure` and unchecking the `Free Temp Space` or reducing the threshold

---

<div class="post-metadata">

**Author:** ![srnatan](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@srnatan](https://community.jenkins.io/u/srnatan)\
**Post date:** [January 22, 2024, 6:20pm UTC](https://community.jenkins.io/t/disk-space-below-threshold/11942/3 "2024-01-22T18:20:28Z")

</div>

HI, again

I have created a new instance with more space and loading 2GB to the temporary instance and when launching the agent it shows the same message.  
This is the df -h now

Filesystem Size Used Avail Use% Mounted on  
devtmpfs 4.0M 0 4.0M 0% /dev  
tmpfs 475M 0 475M 0% /dev/shm  
tmpfs 190M 3.0M 187M 2% /run  
/dev/xvda1 20G 2.8G 18G 14% /  
tmpfs 2.0G 0 2.0G 0% /tmp  
/dev/xvda128 10M 1.3M 8.7M 13% /boot/efi  
tmpfs 95M 0 95M 0% /run/user/1000

Can it be something temporary when docker is running?  
This is my instruction with a volume so that jenkins data persist  
docker run -p 8080:8080 -v jenkins\_home:/var/jenkins\_home jenkins/jenkins

---

<div class="post-metadata">

**Author:** ![mawinter69](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/mawinter69/32/1625_2.png) [@mawinter69](https://community.jenkins.io/u/mawinter69)\
**Post date:** [January 22, 2024, 6:53pm UTC](https://community.jenkins.io/t/disk-space-below-threshold/11942/4 "2024-01-22T18:53:46Z")

</div>

Have you tried disabling the monitor as described?  
Is this happening for the controller (built-in) or is this happening for agents that you dynamically spawn using ec2-plugin?

---

<div class="post-metadata">

**Author:** ![srnatan](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@srnatan](https://community.jenkins.io/u/srnatan)\
**Post date:** [January 22, 2024, 10:17pm UTC](https://community.jenkins.io/t/disk-space-below-threshold/11942/5 "2024-01-22T22:17:50Z")

</div>

Where is the option to disable monitoring?  
in the ami configuration in the cloud?  
there is a Monitoring option, but I have not checked it and in the node properties there are the options  
Disable deferred wipeout on this node  
Disk Space Monitoring Thresholds  
Tool Locations  
Environment variables  
but I don’t have any checked either.  
The built-in node does not show any problem, it is when I provision new nodes.

---

<div class="post-metadata">

**Author:** ![mawinter69](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/mawinter69/32/1625_2.png) [@mawinter69](https://community.jenkins.io/u/mawinter69)\
**Post date:** [January 23, 2024, 8:43am UTC](https://community.jenkins.io/t/disk-space-below-threshold/11942/6 "2024-01-23T08:43:58Z")

</div>

Go to `<jenkins_url>/computer/configure`, or from the UI `Manage Jenkins` → `Nodes` and then click on `Node Monitoring` (latest LTS) or `Configure Monitors` (on latest weekly)

---

<div class="post-metadata">

**Author:** ![srnatan](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@srnatan](https://community.jenkins.io/u/srnatan)\
**Post date:** [January 23, 2024, 10:23pm UTC](https://community.jenkins.io/t/disk-space-below-threshold/11942/7 "2024-01-23T22:23:36Z")

</div>

Now yes, finally, thank you very much.  
I was in Configure Monitors in the nodes section.  
Indeed, by deactivating the offline agents the node is operative. Thank you very much.  
But I would like to know how to run my agents without getting space alerts, because I understand that it will be the optimal configuration.  
Is it because of the type of ec2 (t2micro)?  
Because of the ami (Amazon Linux) that loads this /tmp configuration?  
The way I run the jenkins image in docker with the volume?  
Thank you very much for your attention Markus!

---

<div class="post-metadata">

**Author:** ![mawinter69](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/mawinter69/32/1625_2.png) [@mawinter69](https://community.jenkins.io/u/mawinter69)\
**Post date:** [January 26, 2024, 10:27pm UTC](https://community.jenkins.io/t/disk-space-below-threshold/11942/8 "2024-01-26T22:27:10Z")

</div>

Seems you’re using a weekly of Jenkins as you listed the `Disk Space Monitoring Thresholds` as available node properties. When you check this you can define node specific thresholds. If that is also available with the Jenkins configuration of your AMI cloud then you can set here the threshold to 0 which will disable the check for the agent.

---

<div class="post-metadata">

**Author:** ![hassanhah](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/hassanhah/32/7431_2.png) [@hassanhah](https://community.jenkins.io/u/hassanhah)\
**Post date:** [March 16, 2024, 6:26pm UTC](https://community.jenkins.io/t/disk-space-below-threshold/11942/9 "2024-03-16T18:26:37Z")

</div>

thanks this is also work for me

---

<div class="post-metadata">

**Author:** ![yogesht61](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/yogesht61/32/8971_2.png) [@yogesht61](https://community.jenkins.io/u/yogesht61)\
**Post date:** [July 8, 2024, 5:43am UTC](https://community.jenkins.io/t/disk-space-below-threshold/11942/10 "2024-07-08T05:43:51Z")

</div>

build in Node → Disk Space Monitoring Thresholds–\>all value put Zero & save

---

<div class="post-metadata">

**Author:** ![majorgear](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@majorgear](https://community.jenkins.io/u/majorgear)\
**Post date:** [September 15, 2024, 2:59pm UTC](https://community.jenkins.io/t/disk-space-below-threshold/11942/11 "2024-09-15T14:59:35Z")

</div>

Is 0 actually good advice for the controller node? I’m curious if even if you set the number of executors to 0 so no jobs will run, does it still need some space for maintenance tasks and metadata storage?
