# Why am I getting GC Warnings?

**URL:** <https://discuss.elastic.co/t/why-am-i-getting-gc-warnings/19914>\
**Category:** Elasticsearch\
**Created:** [September 22, 2014, 2:27pm UTC](https://discuss.elastic.co/t/why-am-i-getting-gc-warnings/19914 "2014-09-22T14:27:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eugene\_Strokin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eugene_strokin/32/1238_2.png) [@Eugene\_Strokin](https://discuss.elastic.co/u/Eugene_Strokin)\
**Post date:** [September 22, 2014, 2:27pm UTC](https://discuss.elastic.co/t/why-am-i-getting-gc-warnings/19914/1 "2014-09-22T14:27:35Z")

</div>

Hello,  
I've noticed several Garbage Collector warnings in my logs:  
[2014-09-22 11:55:47,880][WARN][monitor.jvm] [es-4]  
[gc][ParNew][642][60] duration [1s], collections [1]/[1.8s], total  
[1s]/[18.5s], memory [3.7gb]-\>[3.5gb]/[14.9gb], all\_pools {[Code Cache]  
[4.2mb]-\>[4.2mb]/[48mb]}{[Par Eden Space]  
[388.3mb]-\>[8.5mb]/[532.5mb]}{[Par Survivor Space]  
[66.5mb]-\>[66.5mb]/[66.5mb]}{[CMS Old Gen] [3.2gb]-\>[3.5gb]/[14.3gb]}{[CMS  
Perm Gen] [30.3mb]-\>[30.3mb]/[82mb]}  
[2014-09-22 11:55:53,764][INFO][monitor.jvm] [es-4]  
[gc][ParNew][647][61] duration [961ms], collections [1]/[1.8s], total  
[961ms]/[19.5s], memory [4gb]-\>[3.7gb]/[14.9gb], all\_pools {[Code Cache]  
[4.2mb]-\>[4.2mb]/[48mb]}{[Par Eden Space]  
[445.2mb]-\>[6.7mb]/[532.5mb]}{[Par Survivor Space]  
[66.5mb]-\>[66.5mb]/[66.5mb]}{[CMS Old Gen] [3.5gb]-\>[3.7gb]/[14.3gb]}{[CMS  
Perm Gen] [30.3mb]-\>[30.3mb]/[82mb]}

The numbers seems legit, or am I missing something?  
I don't understand why the warnings are logged.  
Please help. Any advice or information would be helpful.  
Thanks,  
Eugene

--  
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/aae648ac-c333-4710-9619-1be32b6334ac%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/aae648ac-c333-4710-9619-1be32b6334ac%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [September 22, 2014, 9:42pm UTC](https://discuss.elastic.co/t/why-am-i-getting-gc-warnings/19914/2 "2014-09-22T21:42:48Z")

</div>

I don't think it's anything you should be overly worried about as GC is  
normal.

I am not sure why this is considered a warn level though.

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

On 23 September 2014 00:27, Eugene Strokin [eugene@strokin.info](mailto:eugene@strokin.info) wrote:

> Hello,  
> I've noticed several Garbage Collector warnings in my logs:  
> [2014-09-22 11:55:47,880][WARN][monitor.jvm] [es-4]  
> [gc][ParNew][642][60] duration [1s], collections [1]/[1.8s], total  
> [1s]/[18.5s], memory [3.7gb]-\>[3.5gb]/[14.9gb], all\_pools {[Code Cache]  
> [4.2mb]-\>[4.2mb]/[48mb]}{[Par Eden Space]  
> [388.3mb]-\>[8.5mb]/[532.5mb]}{[Par Survivor Space]  
> [66.5mb]-\>[66.5mb]/[66.5mb]}{[CMS Old Gen] [3.2gb]-\>[3.5gb]/[14.3gb]}{[CMS  
> Perm Gen] [30.3mb]-\>[30.3mb]/[82mb]}  
> [2014-09-22 11:55:53,764][INFO][monitor.jvm] [es-4]  
> [gc][ParNew][647][61] duration [961ms], collections [1]/[1.8s], total  
> [961ms]/[19.5s], memory [4gb]-\>[3.7gb]/[14.9gb], all\_pools {[Code Cache]  
> [4.2mb]-\>[4.2mb]/[48mb]}{[Par Eden Space]  
> [445.2mb]-\>[6.7mb]/[532.5mb]}{[Par Survivor Space]  
> [66.5mb]-\>[66.5mb]/[66.5mb]}{[CMS Old Gen] [3.5gb]-\>[3.7gb]/[14.3gb]}{[CMS  
> Perm Gen] [30.3mb]-\>[30.3mb]/[82mb]}
> 
> The numbers seems legit, or am I missing something?  
> I don't understand why the warnings are logged.  
> Please help. Any advice or information would be helpful.  
> Thanks,  
> Eugene
> 
> --  
> 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/aae648ac-c333-4710-9619-1be32b6334ac%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/aae648ac-c333-4710-9619-1be32b6334ac%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/aae648ac-c333-4710-9619-1be32b6334ac%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/aae648ac-c333-4710-9619-1be32b6334ac%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/CAEM624ZzTiB0RZ0SdUPjB5ukU7f2a2-EHc6-d1RWksiC1sCavA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624ZzTiB0RZ0SdUPjB5ukU7f2a2-EHc6-d1RWksiC1sCavA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Eugene\_Strokin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eugene_strokin/32/1238_2.png) [@Eugene\_Strokin](https://discuss.elastic.co/u/Eugene_Strokin)\
**Post date:** [September 23, 2014, 2:22pm UTC](https://discuss.elastic.co/t/why-am-i-getting-gc-warnings/19914/3 "2014-09-23T14:22:57Z")

</div>

Thanks Mark, I thought so. But just in case I'll try to lower heap size  
from 16G to 10G to see if it will help or worsen the situation.

On Monday, September 22, 2014 5:43:38 PM UTC-4, Mark Walkom wrote:

> I don't think it's anything you should be overly worried about as GC is  
> normal.
> 
> I am not sure why this is considered a warn level though.
> 
> Regards,  
> Mark Walkom
> 
> Infrastructure Engineer  
> Campaign Monitor  
> email: [ma...@campaignmonitor.com](mailto:ma...@campaignmonitor.com) \<javascript:\>  
> web: [www.campaignmonitor.com](http://www.campaignmonitor.com)
> 
> On 23 September 2014 00:27, Eugene Strokin \<eug...@strokin.info  
> \<javascript:\>\> wrote:
> 
> > Hello,  
> > I've noticed several Garbage Collector warnings in my logs:  
> > [2014-09-22 11:55:47,880][WARN][monitor.jvm] [es-4]  
> > [gc][ParNew][642][60] duration [1s], collections [1]/[1.8s], total  
> > [1s]/[18.5s], memory [3.7gb]-\>[3.5gb]/[14.9gb], all\_pools {[Code Cache]  
> > [4.2mb]-\>[4.2mb]/[48mb]}{[Par Eden Space]  
> > [388.3mb]-\>[8.5mb]/[532.5mb]}{[Par Survivor Space]  
> > [66.5mb]-\>[66.5mb]/[66.5mb]}{[CMS Old Gen] [3.2gb]-\>[3.5gb]/[14.3gb]}{[CMS  
> > Perm Gen] [30.3mb]-\>[30.3mb]/[82mb]}  
> > [2014-09-22 11:55:53,764][INFO][monitor.jvm] [es-4]  
> > [gc][ParNew][647][61] duration [961ms], collections [1]/[1.8s], total  
> > [961ms]/[19.5s], memory [4gb]-\>[3.7gb]/[14.9gb], all\_pools {[Code Cache]  
> > [4.2mb]-\>[4.2mb]/[48mb]}{[Par Eden Space]  
> > [445.2mb]-\>[6.7mb]/[532.5mb]}{[Par Survivor Space]  
> > [66.5mb]-\>[66.5mb]/[66.5mb]}{[CMS Old Gen] [3.5gb]-\>[3.7gb]/[14.3gb]}{[CMS  
> > Perm Gen] [30.3mb]-\>[30.3mb]/[82mb]}
> > 
> > The numbers seems legit, or am I missing something?  
> > I don't understand why the warnings are logged.  
> > Please help. Any advice or information would be helpful.  
> > Thanks,  
> > Eugene
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/aae648ac-c333-4710-9619-1be32b6334ac%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/aae648ac-c333-4710-9619-1be32b6334ac%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/aae648ac-c333-4710-9619-1be32b6334ac%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/aae648ac-c333-4710-9619-1be32b6334ac%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/2aed43d5-c00c-4713-a12b-97f8ac819b76%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2aed43d5-c00c-4713-a12b-97f8ac819b76%40googlegroups.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, 1:00am UTC](https://discuss.elastic.co/t/why-am-i-getting-gc-warnings/19914/4 "2017-07-06T01:00:25Z")

</div>


