See this post:
Note that you must explicitly set G1GC in java 8. It didn't become the default until java 9.