5 ms·
> In the old cluster, we used Java 8 to run Elasticsearch which was the latest Java version supported at the time. In the new cluster, we use the bundled Java 1
by aorth 4y ago
> In the old cluster, we used Java 8 to run Elasticsearch which was the latest Java version supported at the time. In the new cluster, we use the bundled Java 18 version which allows us to utilize a more modern garbage collector that works better with larger heaps. We used CMS in the old cluster and use G1 in the new one.
/me cries in legacy Java 8 application.
- rickette 4y agoMakes me wonder whats holding back an upgrade?
- sedro 4y agoYou 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