Using: -Xms1000M -Xmx4000M -mx1000m I still get a java.lang.OutOfMemoryError: Java heap space
If I try to increase any of these numbers, I get the following JVM error:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
How can I solve this OutOfMemoryError problem? (even if I need to cache memory on disk)