# \[gc\]\[2661\] overhead, spent \[263ms\] collecting in the last \[1s\]

**URL:** <https://discuss.elastic.co/t/gc-2661-overhead-spent-263ms-collecting-in-the-last-1s/328660>\
**Category:** Elasticsearch\
**Created:** [March 28, 2023, 3:08am UTC](https://discuss.elastic.co/t/gc-2661-overhead-spent-263ms-collecting-in-the-last-1s/328660 "2023-03-28T03:08:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KeithTt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keithtt/32/29447_2.png) [@KeithTt](https://discuss.elastic.co/u/KeithTt)\
**Post date:** [March 28, 2023, 3:08am UTC](https://discuss.elastic.co/t/gc-2661-overhead-spent-263ms-collecting-in-the-last-1s/328660/1 "2023-03-28T03:08:30Z")

</div>

![图片](https://us1.discourse-cdn.com/elastic/original/3X/0/a/0ad50bac989d3e5781e061ad4e18d8aa912bdc86.png)

ES Version: 6.3.0  
OS Version: 7.4  
Java Version: 1.8.0\_131

cpu cores: 20  
memory: total 64g heap 32g

There is nearly only the ES service on the server, I wonder should I decrease the heap size less than 32g? Or total 64g is not enough?

 ![图片](https://us1.discourse-cdn.com/elastic/original/3X/8/9/8911dfa09e408cef25a8c54deaf0890f795fe384.png)

Or maybe there are too many shards in the cluster?

 ![图片](https://us1.discourse-cdn.com/elastic/original/3X/8/7/87bb9f83ae14be2a91eb2e32410376f09d8201e3.png)

---

<div class="post-metadata">

**Author:** ![KeithTt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keithtt/32/29447_2.png) [@KeithTt](https://discuss.elastic.co/u/KeithTt)\
**Post date:** [March 28, 2023, 3:26am UTC](https://discuss.elastic.co/t/gc-2661-overhead-spent-263ms-collecting-in-the-last-1s/328660/2 "2023-03-28T03:26:54Z")

</div>

![图片](https://us1.discourse-cdn.com/elastic/original/3X/5/1/51b2dabc082800ce8d47687fd678f00df4962a98.png)

Maybe buff/cache is not enough?

---

<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:** [March 28, 2023, 4:02am UTC](https://discuss.elastic.co/t/gc-2661-overhead-spent-263ms-collecting-in-the-last-1s/328660/3 "2023-03-28T04:02:24Z")

</div>

Please don't post pictures of text, logs or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them 🙂

---

<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:** [April 25, 2023, 4:03am UTC](https://discuss.elastic.co/t/gc-2661-overhead-spent-263ms-collecting-in-the-last-1s/328660/4 "2023-04-25T04:03:07Z")

</div>

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