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