# Data nodes memory usage increasing but the jvm is under 50% usage

**URL:** <https://discuss.elastic.co/t/data-nodes-memory-usage-increasing-but-the-jvm-is-under-50-usage/366426>\
**Category:** Elastic Search\
**Created:** [September 11, 2024, 5:01pm UTC](https://discuss.elastic.co/t/data-nodes-memory-usage-increasing-but-the-jvm-is-under-50-usage/366426 "2024-09-11T17:01:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yashdeep\_Shah](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yashdeep_shah/32/134957_2.png) [@Yashdeep\_Shah](https://discuss.elastic.co/u/Yashdeep_Shah)\
**Post date:** [September 11, 2024, 5:01pm UTC](https://discuss.elastic.co/t/data-nodes-memory-usage-increasing-but-the-jvm-is-under-50-usage/366426/1 "2024-09-11T17:01:19Z")

</div>

The memory usage of data nodes in our elastic-cluster is increasing rapidly, we have 2-master nodes and 6-data-nodes, indices are 57 and shards is 115, which is using around 27.5Gb of data of the total given to the data nodes(1.2tb). CPU usage is normal around 1-2% for all the nodes.  
Can you suggest some ways to look into the memory usage or how can we handle the usage of the memory in nodes?

---

<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:** [September 11, 2024, 5:06pm UTC](https://discuss.elastic.co/t/data-nodes-memory-usage-increasing-but-the-jvm-is-under-50-usage/366426/2 "2024-09-11T17:06:08Z")

</div>

> [@Yashdeep\_Shah](#):
>
> we have 2-master nodes and 6-data-nodes

If you are looking to have a highly available cluster [you need 3 master eligible nodes](https://www.elastic.co/guide/en/elasticsearch/reference/current/high-availability-cluster-design.html).

> [@Yashdeep\_Shah](#):
>
> Can you suggest some ways to look into the memory usage or how can we handle the usage of the memory in nodes?

If heap usage is looking OK it is perfectly normal for Elasticsearch to consume all memory on the host through the operating system page cache. Memory is there to be used and the page cache is critical for Elasticsearch performance. If some other process (you should however ideally run Elasticsearch on dedicated hosts) need memory the operating system will reduce the size of the cache and make memory available that way so it is not a problem.

---

<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:** [October 9, 2024, 5:06pm UTC](https://discuss.elastic.co/t/data-nodes-memory-usage-increasing-but-the-jvm-is-under-50-usage/366426/3 "2024-10-09T17:06:46Z")

</div>

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