# Does close index free up disk or memory

**URL:** https://discuss.elastic.co/t/does-close-index-free-up-disk-or-memory/258868
**Category:** Elasticsearch
**Created:** [December 16, 2020, 1:27pm UTC](https://discuss.elastic.co/t/does-close-index-free-up-disk-or-memory/258868 "2020-12-16T13:27:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![divya\_lakshmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/divya_lakshmi/32/72393_2.png) [@divya\_lakshmi](https://discuss.elastic.co/u/divya_lakshmi)
#### Post date: [December 16, 2020, 1:27pm UTC](https://discuss.elastic.co/t/does-close-index-free-up-disk-or-memory/258868/1 "2020-12-16T13:27:26Z")

</div>

Hi,

I am using elasticsearch6.5 as single node, using 8GB of JVM and just 3% of memory is free. Will closing index using close API help to free heap memory .please tell what are the advantages of close index

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [December 16, 2020, 1:49pm UTC](https://discuss.elastic.co/t/does-close-index-free-up-disk-or-memory/258868/2 "2020-12-16T13:49:51Z")

</div>

> [@divya\_lakshmi](#):
>
> Will closing index using close API help to free heap memory

Technically yes, but the warning in the [6.8 docs](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/indices-open-close.html#indices-open-close) also applies to 6.5: indices should only be closed on a temporary basis.

Also 6.5 is long past the [end of its supported life](https://www.elastic.co/support/eol), you should upgrade as a matter of urgency.

---

<div class="post-metadata">

### Author: ![divya\_lakshmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/divya_lakshmi/32/72393_2.png) [@divya\_lakshmi](https://discuss.elastic.co/u/divya_lakshmi)
#### Post date: [December 17, 2020, 6:40am UTC](https://discuss.elastic.co/t/does-close-index-free-up-disk-or-memory/258868/3 "2020-12-17T06:40:14Z")

</div>

Thanks a lot !! It helped

---

<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: [January 14, 2021, 6:40am UTC](https://discuss.elastic.co/t/does-close-index-free-up-disk-or-memory/258868/4 "2021-01-14T06:40:34Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
