Using: -Xms1000M -Xmx4000M -mx1000m I still get a java.lang.OutOfMemoryError: Java heap space
I am using the jai-imageio library to read a 100Mb JPEG2000 file, and it may need more than 1Gb heap space once decompressed by the imageio lib. I am using a 32bit windows JVM, so I can't create more than 1G heap space.
See this post: java- OutOfMemoryError with -Xms1000M -Xmx4000M -mx1000m
So, is there a way to tell JVM to use a file for the heap memory, instead of ram memory (to be able to have a heap space bigger than 1Gb, even in a 32bit windows)?