I am trying to run a java program through MATLAB. When my input file is small, it works fine. But when I increase the file size and, in turn, increase the heap size, I get this error message:
Error initializing VM
Failed to reserve enough space for the heap of objects
Failed to create Java virtual machine.
When I run my java command using -Xmx1500m , it works fine, but when I increase it to -Xmx2000m , it gives an error message. The computer I work on has 12 GB of memory, so I donβt understand why the problem of increasing the heap size to 2000 should be a problem. I do not have programs for clogging memory.
source share