G1 Garbage Collector with Elasticsearch >= 1.1


(Michael Hart) #1

I'm running into a lot of issues with large heaps of >= 8GB and full GC's,
as are a lot of others on this forum. Everything from Oracle/Sun indicates
that the G1 garbage collector is supposed to deal with large heaps better,
or at least give more consistency in terms of GC pauses, than the CMS
garbage collector. Earlier posts in this forum indicate that there were
bugs with the G1 collector and Trove, that have now been fixed.

Is there updated information and/or recommendations from Elasticsearch
about using the G1 collector with Java 7u55 and Elasticsearch 1.1 or 1.2?

thanks
mike

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/64d8d7fb-411f-44b0-9c51-fd6374965837%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Bruce Ritchie) #2

We use G1GC for tomcat and mule in production but not for ES. We have found
that G1GC is more 'stable' in terms of pause times at the cost of more
overhead and thus less throughput. No GC algorithm will help you though if
you have a memory leak or your vm is under extreme memory pressure.

For really large heaps I would suggest taking a look at Azul's vm. It's not
cheap but it pretty much guarantees no pause times any heap size. I don't
know at what overhead cost though.

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/19f488c4-5493-4bfa-83ea-aad7ce05fe3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #3