I believe that it helps sandbox Java programs, i.e. stops them, taking all the memory on a physical machine. In addition, memory leaks can still occur in Java even with garbage collection, and they can be even more sophisticated than in C / C ++ from time to time.
If you really need to increase the amount of memory for your Java software, you can tweek the maximum VM size in the configuration files.
source
share