# Disk usage grows rapidly after a few days, cleans up with restart

**URL:** <https://community.influxdata.com/t/disk-usage-grows-rapidly-after-a-few-days-cleans-up-with-restart/16006>\
**Category:** Systems\
**Created:** [September 17, 2020, 2:01pm UTC](https://community.influxdata.com/t/disk-usage-grows-rapidly-after-a-few-days-cleans-up-with-restart/16006 "2020-09-17T14:01:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henkis](https://avatars.discourse-cdn.com/v4/letter/h/b5a626/32.png) [@Henkis](https://community.influxdata.com/u/Henkis)\
**Post date:** [September 17, 2020, 2:01pm UTC](https://community.influxdata.com/t/disk-usage-grows-rapidly-after-a-few-days-cleans-up-with-restart/16006/1 "2020-09-17T14:01:56Z")

</div>

Hi,

I have a InfluxDB 1.8.2 instances collecting data from telegraf on host, it works well but recently it has begun to consume lots of disk space, a restart frees lots of space and its fine for a few days and then it begins to grow again. Any suggestions on what to look at?

Thanks

---

<div class="post-metadata">

**Author:** ![philb](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/philb/32/1805_2.png) [@philb](https://community.influxdata.com/u/philb)\
**Post date:** [September 17, 2020, 3:36pm UTC](https://community.influxdata.com/t/disk-usage-grows-rapidly-after-a-few-days-cleans-up-with-restart/16006/2 "2020-09-17T15:36:20Z")

</div>

Sounds like it could be a log file maybe?

---

<div class="post-metadata">

**Author:** ![Henkis](https://avatars.discourse-cdn.com/v4/letter/h/b5a626/32.png) [@Henkis](https://community.influxdata.com/u/Henkis)\
**Post date:** [September 18, 2020, 6:25am UTC](https://community.influxdata.com/t/disk-usage-grows-rapidly-after-a-few-days-cleans-up-with-restart/16006/3 "2020-09-18T06:25:03Z")

</div>

I don’t think it’s log, the space used space is in the data directory, I do get some messages to syslog but I have not enabled debug level yet. And it happends after a few days of running, before the data grows as normal.

---

<div class="post-metadata">

**Author:** ![James\_Paige](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/james_paige/32/5241_2.png) [@James\_Paige](https://community.influxdata.com/u/James_Paige)\
**Post date:** [September 18, 2020, 6:42pm UTC](https://community.influxdata.com/t/disk-usage-grows-rapidly-after-a-few-days-cleans-up-with-restart/16006/4 "2020-09-18T18:42:19Z")

</div>

Oh, hey! This looks exactly like my problem that i posted a while back [Strange disk space usage leak after InfluxDB 1.8.x upgrade](https://community.influxdata.com/t/strange-disk-space-usage-leak-after-influxdb-1-8-x-upgrade/15825)

It seems to have something to do with shard compaction causing tsm.tmp files to be left behind, which eat up space, but are cleaned up at a restart.

Still co clue _why_ it happens, or how to fix it. Seriously considering a downgrade to 1.7.9 just to see if that will avoid the problem

---

<div class="post-metadata">

**Author:** ![Henkis](https://avatars.discourse-cdn.com/v4/letter/h/b5a626/32.png) [@Henkis](https://community.influxdata.com/u/Henkis)\
**Post date:** [October 1, 2020, 7:23am UTC](https://community.influxdata.com/t/disk-usage-grows-rapidly-after-a-few-days-cleans-up-with-restart/16006/5 "2020-10-01T07:23:32Z")

</div>

Ah, thank you! I will see if can locate these large tsm.tmp files the next time it happens, you have found no solution to the problem. I saw there was a 1.8.3 ongoing in GitHub, but I could not find anything that looked related to this.

---

<div class="post-metadata">

**Author:** ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)\
**Post date:** [October 9, 2020, 2:50pm UTC](https://community.influxdata.com/t/disk-usage-grows-rapidly-after-a-few-days-cleans-up-with-restart/16006/6 "2020-10-09T14:50:22Z")

</div>

Hello!  
I’m currently asking for help. I appreciate your patience while I look for an answer.  
Thank you.

---

<div class="post-metadata">

**Author:** ![Henkis](https://avatars.discourse-cdn.com/v4/letter/h/b5a626/32.png) [@Henkis](https://community.influxdata.com/u/Henkis)\
**Post date:** [October 9, 2020, 6:29pm UTC](https://community.influxdata.com/t/disk-usage-grows-rapidly-after-a-few-days-cleans-up-with-restart/16006/7 "2020-10-09T18:29:52Z")

</div>

I’m also seeing this problem, it not good, I have to restart a few time a week now to have the tmp-files removed before (or after) the disk has run out of space, after a restart I’m back to 50% used again.
