# Elasticsearch - getting GC and the node reconnect from the cluster

**URL:** <https://discuss.elastic.co/t/elasticsearch-getting-gc-and-the-node-reconnect-from-the-cluster/329232>\
**Category:** Elasticsearch\
**Created:** [April 3, 2023, 4:05pm UTC](https://discuss.elastic.co/t/elasticsearch-getting-gc-and-the-node-reconnect-from-the-cluster/329232 "2023-04-03T16:05:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![navaneethan](https://avatars.discourse-cdn.com/v4/letter/n/f17d59/32.png) [@navaneethan](https://discuss.elastic.co/u/navaneethan)\
**Post date:** [April 3, 2023, 4:05pm UTC](https://discuss.elastic.co/t/elasticsearch-getting-gc-and-the-node-reconnect-from-the-cluster/329232/1 "2023-04-03T16:05:43Z")

</div>

we are getting GC and during that time heap usage is reducing and even sometimes the node reconnects from the cluster

below are the params we are using and the GC

-XX:+UseConcMarkSweepGC  
-XX:+UseParNewGC  
-XX:CMSInitiatingOccupancyFraction=75  
-XX:+UseCMSInitiatingOccupancyOnly

[2023-03-28T20:08:48,861][WARN][o.e.m.j.JvmGcMonitorService] [node#] [gc][353382] overhead, spent [582ms] collecting in the last [1s]

when the GC collected more that 4-5 sec the node went unresponsive

ES config  
7.3.2  
Java 8  
CMS GC

---

<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:** [April 4, 2023, 1:33am UTC](https://discuss.elastic.co/t/elasticsearch-getting-gc-and-the-node-reconnect-from-the-cluster/329232/2 "2023-04-04T01:33:37Z")

</div>

What is the output from the [`_cluster/stats?pretty&human` API](https://www.elastic.co/guide/en/elasticsearch/reference/8.4/cluster-stats.html)?

> [@navaneethan](#):
>
> 7.3.2

Please note that version is [EOL](https://www.elastic.co/support/eol) and no longer supported, you should be looking to upgrade as a matter of urgency.

---

<div class="post-metadata">

**Author:** ![navaneethan](https://avatars.discourse-cdn.com/v4/letter/n/f17d59/32.png) [@navaneethan](https://discuss.elastic.co/u/navaneethan)\
**Post date:** [April 4, 2023, 2:04pm UTC](https://discuss.elastic.co/t/elasticsearch-getting-gc-and-the-node-reconnect-from-the-cluster/329232/3 "2023-04-04T14:04:11Z")

</div>

{  
"\_nodes": {  
"total": 8,  
"successful": 8,  
"failed": 0  
},  
"cluster\_name": "####",  
"cluster\_uuid": "####",  
"timestamp": 1680616087075,  
"status": "green",  
"indices": {  
"count": 465,  
"shards": {  
"total": 4626,  
"primaries": 2313,  
"replication": 1.0,  
"index": {  
"shards": {  
"min": 2,  
"max": 10,  
"avg": 9.948387096774194  
},  
"primaries": {  
"min": 1,  
"max": 5,  
"avg": 4.974193548387097  
},  
"replication": {  
"min": 1.0,  
"max": 1.0,  
"avg": 1.0  
}  
}  
},  
"docs": {  
"count": 375345756,  
"deleted": 24576257  
},  
"store": {  
"size": "834.5gb",  
"size\_in\_bytes": 896067035648  
},  
"fielddata": {  
"memory\_size": "115.5kb",  
"memory\_size\_in\_bytes": 118312,  
"evictions": 0  
},  
"query\_cache": {  
"memory\_size": "201.7mb",  
"memory\_size\_in\_bytes": 211509652,  
"total\_count": 77104706,  
"hit\_count": 19919292,  
"miss\_count": 57185414,  
"cache\_size": 1850,  
"cache\_count": 2508790,  
"evictions": 2506940  
},  
"completion": {  
"size": "0b",  
"size\_in\_bytes": 0  
},  
"segments": {  
"count": 12168,  
"memory": "449.2mb",  
"memory\_in\_bytes": 471078152,  
"terms\_memory": "181.7mb",  
"terms\_memory\_in\_bytes": 190594436,  
"stored\_fields\_memory": "239.8mb",  
"stored\_fields\_memory\_in\_bytes": 251509664,  
"term\_vectors\_memory": "0b",  
"term\_vectors\_memory\_in\_bytes": 0,  
"norms\_memory": "1.9mb",  
"norms\_memory\_in\_bytes": 2046080,  
"points\_memory": "14.6mb",  
"points\_memory\_in\_bytes": 15402506,  
"doc\_values\_memory": "10.9mb",  
"doc\_values\_memory\_in\_bytes": 11525466,  
"index\_writer\_memory": "0b",  
"index\_writer\_memory\_in\_bytes": 0,  
"version\_map\_memory": "0b",  
"version\_map\_memory\_in\_bytes": 0,  
"fixed\_bit\_set": "76.3mb",  
"fixed\_bit\_set\_memory\_in\_bytes": 80035008,  
"max\_unsafe\_auto\_id\_timestamp": 1680528380254,  
"file\_sizes": {

```
  }
}

```

},  
"nodes": {  
"count": {  
"total": 8,  
"coordinating\_only": 0,  
"data": 5,  
"ingest": 0,  
"master": 3,  
"voting\_only": 0  
},  
"versions": [  
"7.3.2"  
],  
"os": {  
"available\_processors": 108,  
"allocated\_processors": 108,  
"names": [  
{  
"name": "Linux",  
"count": 8  
}  
],  
"pretty\_names": [  
{  
"pretty\_name": "Ubuntu 18.04.6 LTS",  
"count": 8  
}  
],  
"mem": {  
"total": "848.9gb",  
"total\_in\_bytes": 911572004864,  
"free": "95.1gb",  
"free\_in\_bytes": 102122815488,  
"used": "753.8gb",  
"used\_in\_bytes": 809449189376,  
"free\_percent": 11,  
"used\_percent": 89  
}  
},  
"process": {  
"cpu": {  
"percent": 19  
},  
"open\_file\_descriptors": {  
"min": 561,  
"max": 47730,  
"avg": 26621  
}  
},  
"jvm": {  
"max\_uptime": "361.2d",  
"max\_uptime\_in\_millis": 31208114474,  
"versions": [  
{  
"version": "1.8.0\_131",  
"vm\_name": "Java HotSpot(TM) 64-Bit Server VM",  
"vm\_version": "25.131-b11",  
"vm\_vendor": "Oracle Corporation",  
"bundled\_jdk": true,  
"using\_bundled\_jdk": false,  
"count": 8  
}  
],  
"mem": {  
"heap\_used": "34.8gb",  
"heap\_used\_in\_bytes": 37396632600,  
"heap\_max": "80.4gb",  
"heap\_max\_in\_bytes": 86433071104  
},  
"threads": 1193  
},  
"fs": {  
"total": "2.9tb",  
"total\_in\_bytes": 3219611107328,  
"free": "891gb",  
"free\_in\_bytes": 956724506624,  
"available": "890.9gb",  
"available\_in\_bytes": 956623843328  
},  
"plugins": [  
{  
"name": "repository-gcs",  
"version": "7.3.2",  
"elasticsearch\_version": "7.3.2",  
"java\_version": "1.8",  
"description": "The GCS repository plugin adds Google Cloud Storage support for repositories.",  
"classname": "org.elasticsearch.repositories.gcs.GoogleCloudStoragePlugin",  
"extended\_plugins": [

```
    ],
    "has_native_controller": false
  }
],
"network_types": {
  "transport_types": {
    "security4": 8
  },
  "http_types": {
    "security4": 8
  }
},
"discovery_types": {
  "zen": 8
},
"packaging_types": [
  {
    "flavor": "default",
    "type": "tar",
    "count": 8
  }
]

```

}  
}

---

<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 2, 2023, 2:04pm UTC](https://discuss.elastic.co/t/elasticsearch-getting-gc-and-the-node-reconnect-from-the-cluster/329232/4 "2023-05-02T14:04:26Z")

</div>

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