Hacker News new | ask | show | jobs
by sedro 1240 days ago
You can use G1 on Java 8 with -XX:+UseG1GC
1 comments

I wouldn't recommend it, however, especially with Elasticsearch. I spent a lot of time with their team debugging issues that came down to G1GC issues in those days.
On a related note, for years I had been following ShawnHeisy's wiki notes on Java / Solr. For a long time there was a HUGE warning about G1GC + Lucene (which is the underlying technology in both Solr and Elasticsearch).

https://cwiki.apache.org/confluence/display/solr/shawnheisey

Those warnings have gone away recently. Make of that what you will.

In Elasticsearch, the default has changed more than 3 years ago (since we always ship the current JDK by default): https://github.com/elastic/elasticsearch/pull/49123