# Elasticsearch creating files but not releasing them until I restart the service

**URL:** <https://discuss.elastic.co/t/elasticsearch-creating-files-but-not-releasing-them-until-i-restart-the-service/37385>\
**Category:** Elasticsearch\
**Created:** [December 16, 2015, 5:53pm UTC](https://discuss.elastic.co/t/elasticsearch-creating-files-but-not-releasing-them-until-i-restart-the-service/37385 "2015-12-16T17:53:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![swarzech](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@swarzech](https://discuss.elastic.co/u/swarzech)\
**Post date:** [December 16, 2015, 5:53pm UTC](https://discuss.elastic.co/t/elasticsearch-creating-files-but-not-releasing-them-until-i-restart-the-service/37385/1 "2015-12-16T17:53:04Z")

</div>

I am running elastcsearch 0.90.5 and recently I have been having issues with the disk running out of space. This is not caused by my indexes increasing in size but by the elasticsearch service holding on to the disk space.

If I restart the service the extra disk space is released and elasticsearch will start working again. The biggest issue with this is that in order to restart the service I have to take down the database.

Does anyone know what is causing this and how to fix it?

Thanks

---

<div class="post-metadata">

**Author:** ![John\_D\_Ament](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john_d_ament/32/764_2.png) [@John\_D\_Ament](https://discuss.elastic.co/u/John_D_Ament)\
**Post date:** [December 16, 2015, 6:02pm UTC](https://discuss.elastic.co/t/elasticsearch-creating-files-but-not-releasing-them-until-i-restart-the-service/37385/2 "2015-12-16T18:02:05Z")

</div>

Any chance you can try on a more recent version?

---

<div class="post-metadata">

**Author:** ![swarzech](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@swarzech](https://discuss.elastic.co/u/swarzech)\
**Post date:** [December 16, 2015, 8:51pm UTC](https://discuss.elastic.co/t/elasticsearch-creating-files-but-not-releasing-them-until-i-restart-the-service/37385/3 "2015-12-16T20:51:01Z")

</div>

I am going to update to the newest version of 0.90.X in the next couple of weeks, but until then I want to make sure my database doesn't go down. Also If this is a problem in the new version I would like to know the cause.

Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 16, 2015, 9:02pm UTC](https://discuss.elastic.co/t/elasticsearch-creating-files-but-not-releasing-them-until-i-restart-the-service/37385/4 "2015-12-16T21:02:31Z")

</div>

> [@swarzech](#):
>
> I am going to update to the newest version of 0.90.X

0.90.X is no longer supported, and it's almost 2 years old. You should upgrade anyway!

---

<div class="post-metadata">

**Author:** ![swarzech](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@swarzech](https://discuss.elastic.co/u/swarzech)\
**Post date:** [December 16, 2015, 9:06pm UTC](https://discuss.elastic.co/t/elasticsearch-creating-files-but-not-releasing-them-until-i-restart-the-service/37385/5 "2015-12-16T21:06:18Z")

</div>

I know, but updating to 1.X or newer is a much larger project and I would like to get this fixed in the interim.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:30pm UTC](https://discuss.elastic.co/t/elasticsearch-creating-files-but-not-releasing-them-until-i-restart-the-service/37385/6 "2017-07-05T23:30:24Z")

</div>


