3 ms·
You can use G1 on Java 8 with -XX:+UseG1GC
by sedro 4y ago
You can use G1 on Java 8 with -XX:+UseG1GC
- mirashii 4y agoI 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.
- aorth 4y agoOn 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 https://cwiki.apache.org/confluence/display/solr/shawnheisey Those warnings have gone away recently. Make of that what you will.
- xeraa 4y agoIn 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 https://github.com/elastic/elasticsearch/pull/49123