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).
mirashii|3 years ago
aorth|3 years ago
https://cwiki.apache.org/confluence/display/solr/shawnheisey
Those warnings have gone away recently. Make of that what you will.