# Elastic search memory

**URL:** <https://discuss.elastic.co/t/elastic-search-memory/230355>\
**Category:** Logstash\
**Created:** [April 29, 2020, 10:57am UTC](https://discuss.elastic.co/t/elastic-search-memory/230355 "2020-04-29T10:57:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lynd](https://avatars.discourse-cdn.com/v4/letter/l/5f9b8f/32.png) [@Lynd](https://discuss.elastic.co/u/Lynd)\
**Post date:** [April 29, 2020, 10:57am UTC](https://discuss.elastic.co/t/elastic-search-memory/230355/1 "2020-04-29T10:57:42Z")

</div>

I tried to set the heap size of elastic search .so I have set it as -Xmx64m and -Xms64m.but when I restarted the es and check for the memory its still showing 2g.then I commented out those two setting written as follows:  
Xmx64m //commented out  
Xms64m  
ES\_JAVA\_OPTS="-Xmx64m -Xmx64m" ./bin/elastic search  
But nothing worked.can anyone have idea why it is not changed?

---

<div class="post-metadata">

**Author:** ![Luca\_Belluccini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luca_belluccini/32/33239_2.png) [@Luca\_Belluccini](https://discuss.elastic.co/u/Luca_Belluccini)\
**Post date:** [April 29, 2020, 12:45pm UTC](https://discuss.elastic.co/t/elastic-search-memory/230355/2 "2020-04-29T12:45:03Z")

</div>

Hello @Lynd

1. What Elasticsearch version are you on?
2. I see you've opened the question on Logstash. Can you modify the category to Elasticsearch?
3. Can you provide the exact command & the log lines of Elasticsearch startup?

---

<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:** [May 27, 2020, 12:45pm UTC](https://discuss.elastic.co/t/elastic-search-memory/230355/3 "2020-05-27T12:45:12Z")

</div>

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