# Node/ cluster consuming too much memory

**URL:** <https://discuss.elastic.co/t/node-cluster-consuming-too-much-memory/194380>\
**Category:** Elasticsearch\
**Created:** [August 8, 2019, 9:06am UTC](https://discuss.elastic.co/t/node-cluster-consuming-too-much-memory/194380 "2019-08-08T09:06:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rakesh4](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@Rakesh4](https://discuss.elastic.co/u/Rakesh4)\
**Post date:** [August 8, 2019, 9:06am UTC](https://discuss.elastic.co/t/node-cluster-consuming-too-much-memory/194380/1 "2019-08-08T09:06:53Z")

</div>

we have es configuration like  
3 master node(16GB, allocation 15 GB , hdd 2 TB)  
3 data node (64GB, allocation 12 GB , hdd 2 TB)  
2 coord node(32GB, allocation 15 GB , hdd 2 TB)

Replica set to 2 . Data node have 2 TB data.  
219 indices over all ( 657 shards)  
each index have 1 shard each

When I am indexing I observed its reaching to max limit.

I am not sure what is there in my memory , cluster stats says there are ~12k segments.

1. Is segments in memory that eating memory and causing circuit exception.  
segments: {

- count: 12472,

- memory\_in\_bytes: 25171110632,

- terms\_memory\_in\_bytes: 22302468316,

- stored\_fields\_memory\_in\_bytes: 2767848056,

- term\_vectors\_memory\_in\_bytes: 0,

- norms\_memory\_in\_bytes: 18428096,

- points\_memory\_in\_bytes: 77911792,

- doc\_values\_memory\_in\_bytes: 4454372,

- index\_writer\_memory\_in\_bytes: 0,

- version\_map\_memory\_in\_bytes: 0,

- fixed\_bit\_set\_memory\_in\_bytes: 341385592,

- max\_unsafe\_auto\_id\_timestamp: -1,

- file\_sizes: { }

1. Heap dump shows some Class B(java.base@127.1.0) consuming 8GB memory and never flush off
2. Is it GC problem ?

Any help appreciated.

---

<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:** [September 5, 2019, 9:07am UTC](https://discuss.elastic.co/t/node-cluster-consuming-too-much-memory/194380/2 "2019-09-05T09:07:08Z")

</div>

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