# Is it good that memory usage is high like over 90%?

**URL:** <https://discuss.elastic.co/t/is-it-good-that-memory-usage-is-high-like-over-90/265144>\
**Category:** Elasticsearch\
**Created:** [February 23, 2021, 2:23am UTC](https://discuss.elastic.co/t/is-it-good-that-memory-usage-is-high-like-over-90/265144 "2021-02-23T02:23:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![CHU\_XU](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chu_xu/32/45946_2.png) [@CHU\_XU](https://discuss.elastic.co/u/CHU_XU)\
**Post date:** [February 23, 2021, 2:23am UTC](https://discuss.elastic.co/t/is-it-good-that-memory-usage-is-high-like-over-90/265144/1 "2021-02-23T02:23:14Z")

</div>

Hi experts,

I know that es node uses memory both for jvm and file cache. If I have an node with 50GB memory and set jvm using 25GB, is that expected when the total memory usage is high like 48GB and never go down?  
Will it finally consume all memory and the node become dead?

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:** [February 23, 2021, 2:42am UTC](https://discuss.elastic.co/t/is-it-good-that-memory-usage-is-high-like-over-90/265144/2 "2021-02-23T02:42:16Z")

</div>

Are you talking about heap or non-heap?

---

<div class="post-metadata">

**Author:** ![CHU\_XU](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chu_xu/32/45946_2.png) [@CHU\_XU](https://discuss.elastic.co/u/CHU_XU)\
**Post date:** [February 23, 2021, 6:40am UTC](https://discuss.elastic.co/t/is-it-good-that-memory-usage-is-high-like-over-90/265144/3 "2021-02-23T06:40:44Z")

</div>

It's non-heap, the memory of instance.

---

<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:** [February 23, 2021, 6:52am UTC](https://discuss.elastic.co/t/is-it-good-that-memory-usage-is-high-like-over-90/265144/4 "2021-02-23T06:52:43Z")

</div>

That's managed by the OS as it caches commonly accessed files. It's why we suggest keeping heap to 50% of total memory, so that it can do this and improve the speed of Elasticsearch.

The OS will continue to manage this and won't run out of memory.

---

<div class="post-metadata">

**Author:** ![CHU\_XU](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chu_xu/32/45946_2.png) [@CHU\_XU](https://discuss.elastic.co/u/CHU_XU)\
**Post date:** [February 24, 2021, 5:53am UTC](https://discuss.elastic.co/t/is-it-good-that-memory-usage-is-high-like-over-90/265144/5 "2021-02-24T05:53:03Z")

</div>

Is there a bar like how many percentage the memory is used then OS will handle? I'm monitoring the memory usage on my cluster and when some node reach a high usage, it will trigger an alert. Now the bar is set to 90% and obviously it's easy to reach. Shoud I raise it higher like 95% or there's no need to care?

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:** [February 24, 2021, 6:10am UTC](https://discuss.elastic.co/t/is-it-good-that-memory-usage-is-high-like-over-90/265144/6 "2021-02-24T06:10:42Z")

</div>

I would look at heap use as a better metric.

---

<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:** [March 24, 2021, 6:11am UTC](https://discuss.elastic.co/t/is-it-good-that-memory-usage-is-high-like-over-90/265144/7 "2021-03-24T06:11:27Z")

</div>

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