-XX:+UseNoGC option enables a garbage collection policy that expands the Java object heap in the normal way until the limit is reached, but memory is not
reclaimed through garbage collection.
This policy can be useful for test purposes and for short-lived applications. When the limit is reached an
OutOfMemory error is generated and the VM shuts down.
-XX:-UseNoGC option turns off a previously enabled
This policy can also be enabled with the
-Xgcpolicy:nogc option. See
-Xgcpolicy:nogc for more details about this policy and when it is appropriate to use it.