# Minimal memory footprint

**URL:** https://discuss.elastic.co/t/minimal-memory-footprint/210474
**Category:** Elasticsearch
**Created:** [December 4, 2019, 6:54am UTC](https://discuss.elastic.co/t/minimal-memory-footprint/210474 "2019-12-04T06:54:35Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Nee\_Defeng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nee_defeng/32/45771_2.png) [@Nee\_Defeng](https://discuss.elastic.co/u/Nee_Defeng)
#### Post date: [December 4, 2019, 6:54am UTC](https://discuss.elastic.co/t/minimal-memory-footprint/210474/1 "2019-12-04T06:54:35Z")

</div>

hi there,

I am wondering what could be the minimal memory allocated ES to be running on Windows? I tried to use this setting in the es batch script but it seems like it is using more than it is allocated:

 ![es%20memory](https://us1.discourse-cdn.com/elastic/original/3X/4/9/49779bc2ed9898aab2dc9c668bff4c0bf432a851.png)

how?

Thanks

---

<div class="post-metadata">

### Author: ![Nee\_Defeng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nee_defeng/32/45771_2.png) [@Nee\_Defeng](https://discuss.elastic.co/u/Nee_Defeng)
#### Post date: [December 6, 2019, 1:06am UTC](https://discuss.elastic.co/t/minimal-memory-footprint/210474/2 "2019-12-06T01:06:40Z")

</div>

Any comments?

The data volume is very low and no SLA is needed. Just want to reduce the footprint.

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [December 6, 2019, 5:24am UTC](https://discuss.elastic.co/t/minimal-memory-footprint/210474/3 "2019-12-06T05:24:43Z")

</div>

That setting specifies the amount of heap available to Elasticsearch. Elasticsearch however required off-heap memory and some file system cache as well to operate so will always use more memory than the heap specifies.

---

<div class="post-metadata">

### Author: ![Nee\_Defeng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nee_defeng/32/45771_2.png) [@Nee\_Defeng](https://discuss.elastic.co/u/Nee_Defeng)
#### Post date: [December 6, 2019, 5:58am UTC](https://discuss.elastic.co/t/minimal-memory-footprint/210474/4 "2019-12-06T05:58:03Z")

</div>

thanks,

any best practice to minimize the system resource of ES given that the seach demand is minimal?

or I should use the pure opensource version of ES?

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [December 6, 2019, 6:29am UTC](https://discuss.elastic.co/t/minimal-memory-footprint/210474/5 "2019-12-06T06:29:02Z")

</div>

The requirement for off-heap memory applies to any Elasticsearch version so I would not expect changing version to make much difference.

---

<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 3, 2020, 6:29am UTC](https://discuss.elastic.co/t/minimal-memory-footprint/210474/6 "2020-01-03T06:29:03Z")

</div>

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