# GC issue

**URL:** <https://discuss.elastic.co/t/gc-issue/20190>\
**Category:** Elasticsearch\
**Created:** [October 10, 2014, 7:48pm UTC](https://discuss.elastic.co/t/gc-issue/20190 "2014-10-10T19:48:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nalzapur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nalzapur/32/899_2.png) [@nalzapur](https://discuss.elastic.co/u/nalzapur)\
**Post date:** [October 10, 2014, 7:48pm UTC](https://discuss.elastic.co/t/gc-issue/20190/1 "2014-10-10T19:48:00Z")

</div>

i have setup elasticsearch on a windows box and set ES\_HEAP\_SIZE to 10g out  
of total 28g.  
For some reason, GC keeps happening as soon as heap memory reaches around  
250mb. Attached couple of images from BigDesk. Please let me know how to  
avoid this.

ES version: 1.3.2

Java Version:

VM name: Java HotSpot(TM) 64-Bit Server VM  
VM vendor: Oracle Corporation  
VM version: 25.20-b23

Uptime: 14.9h  
Java version: 1.8.0\_20

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/dfe576de-2f80-49d3-8f8b-f9464b0f24ff%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/dfe576de-2f80-49d3-8f8b-f9464b0f24ff%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Bruce\_Ritchie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bruce_ritchie/32/9370_2.png) [@Bruce\_Ritchie](https://discuss.elastic.co/u/Bruce_Ritchie)\
**Post date:** [October 10, 2014, 9:19pm UTC](https://discuss.elastic.co/t/gc-issue/20190/2 "2014-10-10T21:19:51Z")

</div>

Young generation GC happens a lot normally and it's normally not a concern  
as it takes so little time per GC cycle. In my experience it's only a  
concern if it's happening many many times per second which often indicates  
too small a young generation.

> 

It's the old generation GC cycles that you have to concern yourself with as  
those are the ones that may (and eventually _will_ with CMS) take many  
seconds to complete.

All the best,

Bruce

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/9bdfe5f4-b31e-4694-9be3-e975d454b8e8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9bdfe5f4-b31e-4694-9be3-e975d454b8e8%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![nalzapur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nalzapur/32/899_2.png) [@nalzapur](https://discuss.elastic.co/u/nalzapur)\
**Post date:** [October 10, 2014, 10:04pm UTC](https://discuss.elastic.co/t/gc-issue/20190/3 "2014-10-10T22:04:21Z")

</div>

Thank you. It seems to happen once in 3mins, so it should be ok.

thanks,  
Nara.

On Fri, Oct 10, 2014 at 4:19 PM, Bruce Ritchie [bruce.ritchie@gmail.com](mailto:bruce.ritchie@gmail.com)  
wrote:

> Young generation GC happens a lot normally and it's normally not a concern  
> as it takes so little time per GC cycle. In my experience it's only a  
> concern if it's happening many many times per second which often indicates  
> too small a young generation.
> 
> > 
> 
> It's the old generation GC cycles that you have to concern yourself with  
> as those are the ones that may (and eventually _will_ with CMS) take many  
> seconds to complete.
> 
> All the best,
> 
> Bruce
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/oTE6BITPBm8/unsubscribe](https://groups.google.com/d/topic/elasticsearch/oTE6BITPBm8/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/9bdfe5f4-b31e-4694-9be3-e975d454b8e8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9bdfe5f4-b31e-4694-9be3-e975d454b8e8%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/9bdfe5f4-b31e-4694-9be3-e975d454b8e8%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/9bdfe5f4-b31e-4694-9be3-e975d454b8e8%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CABGTiqEUVvQ-FRdvE2iB%3DEUzn2t%3DSo%2B4uNmBj-Hg2P3uXq8XZQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CABGTiqEUVvQ-FRdvE2iB%3DEUzn2t%3DSo%2B4uNmBj-Hg2P3uXq8XZQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:56am UTC](https://discuss.elastic.co/t/gc-issue/20190/4 "2017-07-06T00:56:55Z")

</div>


