# ES high heap memory issue over a couple of nodes

**URL:** <https://discuss.elastic.co/t/es-high-heap-memory-issue-over-a-couple-of-nodes/149931>\
**Category:** Elasticsearch\
**Created:** [September 26, 2018, 6:09am UTC](https://discuss.elastic.co/t/es-high-heap-memory-issue-over-a-couple-of-nodes/149931 "2018-09-26T06:09:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjunaidmuzammil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mjunaidmuzammil/32/56910_2.png) [@mjunaidmuzammil](https://discuss.elastic.co/u/mjunaidmuzammil)\
**Post date:** [September 26, 2018, 6:09am UTC](https://discuss.elastic.co/t/es-high-heap-memory-issue-over-a-couple-of-nodes/149931/1 "2018-09-26T06:09:54Z")

</div>

Hi,

We have one of the clusters over which we see high heap usages around 80% levels over a couple of nodes. The cluster has around 10 nodes in total, but heap is seen high only on couple of nodes. All the nodes have a total RAM of 64G and heap set to 30G levels. The total shard count over these nodes is in between 700-750 shards, which lies within the recommended 25 shards per 1GB heap.

What could be the reasons for such high heap?

---

<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 26, 2018, 6:51am UTC](https://discuss.elastic.co/t/es-high-heap-memory-issue-over-a-couple-of-nodes/149931/2 "2018-09-26T06:51:34Z")

</div>

What does the [nodes stats API](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html) give for the nodes with high heap usage?

Please also note that the 25 shards per GB of heap is a guideline about the maximum, but not necessarily recommended, value. Depending on your mappings and shard size, the optimal count for your use case may very well be lower.

---

<div class="post-metadata">

**Author:** ![mjunaidmuzammil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mjunaidmuzammil/32/56910_2.png) [@mjunaidmuzammil](https://discuss.elastic.co/u/mjunaidmuzammil)\
**Post date:** [September 26, 2018, 8:35am UTC](https://discuss.elastic.co/t/es-high-heap-memory-issue-over-a-couple-of-nodes/149931/3 "2018-09-26T08:35:19Z")

</div>

Majority of the shards are under 50G, but there are a few just above 50G mark. Also within an index, on average there are 200-250 fields.

Which particular stats from nodes stats will be helpful here?

---

<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 24, 2018, 8:35am UTC](https://discuss.elastic.co/t/es-high-heap-memory-issue-over-a-couple-of-nodes/149931/4 "2018-10-24T08:35:23Z")

</div>

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