# GC warnings?

**URL:** <https://discuss.elastic.co/t/gc-warnings/12714>\
**Category:** Elasticsearch\
**Created:** [July 9, 2013, 10:57am UTC](https://discuss.elastic.co/t/gc-warnings/12714 "2013-07-09T10:57:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaush777](https://avatars.discourse-cdn.com/v4/letter/k/43a26b/32.png) [@kaush777](https://discuss.elastic.co/u/kaush777)\
**Post date:** [July 9, 2013, 10:57am UTC](https://discuss.elastic.co/t/gc-warnings/12714/1 "2013-07-09T10:57:56Z")

</div>

Hi All,

I have been getting these in my ES logs :

[2013-06-28 11:17:24,697][INFO][monitor.jvm] [Maestro]  
[gc][ParNew][256868][19712] duration [968ms], collections [1]/[2.2s], total  
[968ms]/[4.3m], memory [675mb]-\>[651.1mb]/[1019.8mb], all\_pools {[Code  
Cache] [7mb]-\>[7mb]/[48mb]}{[Par Eden Space]  
[25.5mb]-\>[813.6kb]/[33.3mb]}{[Par Survivor Space]  
[157kb]-\>[1mb]/[4.1mb]}{[CMS Old Gen] [649.3mb]-\>[649.3mb]/[982.4mb]}{[CMS  
Perm Gen] [37.8mb]-\>[37.8mb]/[166mb]}  
[2013-06-28 14:52:14,615][INFO][monitor.jvm] [Maestro]  
[gc][ParNew][269713][19891] duration [792ms], collections [1]/[1.6s], total  
[792ms]/[4.5m], memory [75mb]-\>[96.1mb]/[1019.8mb], all\_pools {[Code Cache]  
[7mb]-\>[7mb]/[48mb]}{[Par Eden Space] [4.4mb]-\>[698kb]/[33.3mb]}{[Par  
Survivor Space] [301.8kb]-\>[827.6kb]/[4.1mb]}{[CMS Old Gen]  
[70.2mb]-\>[94.6mb]/[982.4mb]}{[CMS Perm Gen] [37.8mb]-\>[37.8mb]/[166mb]}  
[2013-06-28 14:52:37,000][WARN][monitor.jvm] [Maestro]  
[gc][ParNew][269730][19950] duration [2.2s], collections [2]/[2.3s], total  
[2.2s]/[4.8m], memory [465.5mb]-\>[498.4mb]/[1019.8mb], all\_pools {[Code  
Cache] [7mb]-\>[7mb]/[48mb]}{[Par Eden Space]  
[5.3mb]-\>[3.8mb]/[33.3mb]}{[Par Survivor Space]  
[1mb]-\>[3.2mb]/[4.1mb]}{[CMS Old Gen] [459mb]-\>[491.3mb]/[982.4mb]}{[CMS  
Perm Gen] [37.8mb]-\>[37.8mb]/[166mb]}  
[2013-06-28 14:52:39,004][INFO][monitor.jvm] [Maestro]  
[gc][ParNew][269732][19952] duration [785ms], collections [1]/[1s], total  
[785ms]/[4.8m], memory [544.4mb]-\>[527.3mb]/[1019.8mb], all\_pools {[Code  
Cache] [7mb]-\>[7mb]/[48mb]}{[Par Eden Space]  
[31.4mb]-\>[2.8mb]/[33.3mb]}{[Par Survivor Space]  
[795.9kb]-\>[4.1mb]/[4.1mb]}{[CMS Old Gen]  
[512.1mb]-\>[520.4mb]/[982.4mb]}{[CMS Perm Gen] [37.8mb]-\>[37.8mb]/[166mb]}

I understand that they probably have to do with GC, but what exactly are  
the messages saying? Is there a problem and some action needs to be taken?  
Because some are INFO and some are at WARN... ?

Any ideas?

Thanks in advance!

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Boaz\_Leskes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/boaz_leskes/32/723_2.png) [@Boaz\_Leskes](https://discuss.elastic.co/u/Boaz_Leskes)\
**Post date:** [July 9, 2013, 1:44pm UTC](https://discuss.elastic.co/t/gc-warnings/12714/2 "2013-07-09T13:44:40Z")

</div>

Hi Kaushel,

It means that garbage collection took longer than you'd expect (thresholds  
are defined in your elasticsearch.yml) . Looking at your numbers, things  
look odd. Normally it should be much much faster processing 544.4mb of  
memory.

Is this a production machine? If so you probably want to allocate much more  
memory to ES than the default 1GB. That settings is for development. Do  
these log appear when there is also a very high query load? Something  
prevents the GC from quickly finishing.

Cheers,  
Boaz

On Tuesday, July 9, 2013 12:57:56 PM UTC+2, Kaushal wrote:

> Hi All,
> 
> I have been getting these in my ES logs :
> 
> [2013-06-28 11:17:24,697][INFO][monitor.jvm] [Maestro]  
> [gc][ParNew][256868][19712] duration [968ms], collections [1]/[2.2s], total  
> [968ms]/[4.3m], memory [675mb]-\>[651.1mb]/[1019.8mb], all\_pools {[Code  
> Cache] [7mb]-\>[7mb]/[48mb]}{[Par Eden Space]  
> [25.5mb]-\>[813.6kb]/[33.3mb]}{[Par Survivor Space]  
> [157kb]-\>[1mb]/[4.1mb]}{[CMS Old Gen] [649.3mb]-\>[649.3mb]/[982.4mb]}{[CMS  
> Perm Gen] [37.8mb]-\>[37.8mb]/[166mb]}  
> [2013-06-28 14:52:14,615][INFO][monitor.jvm] [Maestro]  
> [gc][ParNew][269713][19891] duration [792ms], collections [1]/[1.6s], total  
> [792ms]/[4.5m], memory [75mb]-\>[96.1mb]/[1019.8mb], all\_pools {[Code Cache]  
> [7mb]-\>[7mb]/[48mb]}{[Par Eden Space] [4.4mb]-\>[698kb]/[33.3mb]}{[Par  
> Survivor Space] [301.8kb]-\>[827.6kb]/[4.1mb]}{[CMS Old Gen]  
> [70.2mb]-\>[94.6mb]/[982.4mb]}{[CMS Perm Gen] [37.8mb]-\>[37.8mb]/[166mb]}  
> [2013-06-28 14:52:37,000][WARN][monitor.jvm] [Maestro]  
> [gc][ParNew][269730][19950] duration [2.2s], collections [2]/[2.3s], total  
> [2.2s]/[4.8m], memory [465.5mb]-\>[498.4mb]/[1019.8mb], all\_pools {[Code  
> Cache] [7mb]-\>[7mb]/[48mb]}{[Par Eden Space]  
> [5.3mb]-\>[3.8mb]/[33.3mb]}{[Par Survivor Space]  
> [1mb]-\>[3.2mb]/[4.1mb]}{[CMS Old Gen] [459mb]-\>[491.3mb]/[982.4mb]}{[CMS  
> Perm Gen] [37.8mb]-\>[37.8mb]/[166mb]}  
> [2013-06-28 14:52:39,004][INFO][monitor.jvm] [Maestro]  
> [gc][ParNew][269732][19952] duration [785ms], collections [1]/[1s], total  
> [785ms]/[4.8m], memory [544.4mb]-\>[527.3mb]/[1019.8mb], all\_pools {[Code  
> Cache] [7mb]-\>[7mb]/[48mb]}{[Par Eden Space]  
> [31.4mb]-\>[2.8mb]/[33.3mb]}{[Par Survivor Space]  
> [795.9kb]-\>[4.1mb]/[4.1mb]}{[CMS Old Gen]  
> [512.1mb]-\>[520.4mb]/[982.4mb]}{[CMS Perm Gen] [37.8mb]-\>[37.8mb]/[166mb]}
> 
> I understand that they probably have to do with GC, but what exactly are  
> the messages saying? Is there a problem and some action needs to be taken?  
> Because some are INFO and some are at WARN... ?
> 
> Any ideas?
> 
> Thanks in advance!

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![kaush777](https://avatars.discourse-cdn.com/v4/letter/k/43a26b/32.png) [@kaush777](https://discuss.elastic.co/u/kaush777)\
**Post date:** [August 2, 2013, 6:15am UTC](https://discuss.elastic.co/t/gc-warnings/12714/3 "2013-08-02T06:15:30Z")

</div>

Thanks a lot Boaz,

It is a production machine - so yes I would seriously look into increasing  
the allocated memory to ES, because I recently got a Heap space error as  
well. Any ideas how much is enough - yes I know it all depends on the data  
throughput and load, but say I have messages coming at 14 messages/ 5 sec,  
with sometimes peaking to as much as 132 mes / sec ....?

On Tuesday, 9 July 2013 19:14:40 UTC+5:30, Boaz Leskes wrote:

> Hi Kaushel,
> 
> It means that garbage collection took longer than you'd expect (thresholds  
> are defined in your elasticsearch.yml) . Looking at your numbers, things  
> look odd. Normally it should be much much faster processing 544.4mb of  
> memory.
> 
> Is this a production machine? If so you probably want to allocate much  
> more memory to ES than the default 1GB. That settings is for development.  
> Do these log appear when there is also a very high query load? Something  
> prevents the GC from quickly finishing.
> 
> Cheers,  
> Boaz
> 
> On Tuesday, July 9, 2013 12:57:56 PM UTC+2, Kaushal wrote:
> 
> > Hi All,
> > 
> > I have been getting these in my ES logs :
> > 
> > [2013-06-28 11:17:24,697][INFO][monitor.jvm] [Maestro]  
> > [gc][ParNew][256868][19712] duration [968ms], collections [1]/[2.2s], total  
> > [968ms]/[4.3m], memory [675mb]-\>[651.1mb]/[1019.8mb], all\_pools {[Code  
> > Cache] [7mb]-\>[7mb]/[48mb]}{[Par Eden Space]  
> > [25.5mb]-\>[813.6kb]/[33.3mb]}{[Par Survivor Space]  
> > [157kb]-\>[1mb]/[4.1mb]}{[CMS Old Gen] [649.3mb]-\>[649.3mb]/[982.4mb]}{[CMS  
> > Perm Gen] [37.8mb]-\>[37.8mb]/[166mb]}  
> > [2013-06-28 14:52:14,615][INFO][monitor.jvm] [Maestro]  
> > [gc][ParNew][269713][19891] duration [792ms], collections [1]/[1.6s], total  
> > [792ms]/[4.5m], memory [75mb]-\>[96.1mb]/[1019.8mb], all\_pools {[Code Cache]  
> > [7mb]-\>[7mb]/[48mb]}{[Par Eden Space] [4.4mb]-\>[698kb]/[33.3mb]}{[Par  
> > Survivor Space] [301.8kb]-\>[827.6kb]/[4.1mb]}{[CMS Old Gen]  
> > [70.2mb]-\>[94.6mb]/[982.4mb]}{[CMS Perm Gen] [37.8mb]-\>[37.8mb]/[166mb]}  
> > [2013-06-28 14:52:37,000][WARN][monitor.jvm] [Maestro]  
> > [gc][ParNew][269730][19950] duration [2.2s], collections [2]/[2.3s], total  
> > [2.2s]/[4.8m], memory [465.5mb]-\>[498.4mb]/[1019.8mb], all\_pools {[Code  
> > Cache] [7mb]-\>[7mb]/[48mb]}{[Par Eden Space]  
> > [5.3mb]-\>[3.8mb]/[33.3mb]}{[Par Survivor Space]  
> > [1mb]-\>[3.2mb]/[4.1mb]}{[CMS Old Gen] [459mb]-\>[491.3mb]/[982.4mb]}{[CMS  
> > Perm Gen] [37.8mb]-\>[37.8mb]/[166mb]}  
> > [2013-06-28 14:52:39,004][INFO][monitor.jvm] [Maestro]  
> > [gc][ParNew][269732][19952] duration [785ms], collections [1]/[1s], total  
> > [785ms]/[4.8m], memory [544.4mb]-\>[527.3mb]/[1019.8mb], all\_pools {[Code  
> > Cache] [7mb]-\>[7mb]/[48mb]}{[Par Eden Space]  
> > [31.4mb]-\>[2.8mb]/[33.3mb]}{[Par Survivor Space]  
> > [795.9kb]-\>[4.1mb]/[4.1mb]}{[CMS Old Gen]  
> > [512.1mb]-\>[520.4mb]/[982.4mb]}{[CMS Perm Gen] [37.8mb]-\>[37.8mb]/[166mb]}
> > 
> > I understand that they probably have to do with GC, but what exactly are  
> > the messages saying? Is there a problem and some action needs to be taken?  
> > Because some are INFO and some are at WARN... ?
> > 
> > Any ideas?
> > 
> > Thanks in advance!

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [August 2, 2013, 7:00am UTC](https://discuss.elastic.co/t/gc-warnings/12714/4 "2013-08-02T07:00:39Z")

</div>

From what I can deduce from your number, you run with default settings, and  
you run ES in the cloud?

Note, in the cloud, you only have virtual machines. They show GC warnings  
even though you even don't have GC problems! That's just because your  
neighbors in the cloud put their memory pressure also on your virtual  
machine, so your GC's take longer, and this causes warning messages. Boaz  
is right, the GC statistics do not show that your workload demands for more  
memory.

If you run ES locally, just check your RAM on this machine. Check if you  
have other software running and move it another machine. Increase  
ES\_HEAP\_SIZE to half of this size, and restart the node.

Jörg

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:23am UTC](https://discuss.elastic.co/t/gc-warnings/12714/5 "2017-07-06T02:23:15Z")

</div>


