java.lang.OutOfMemoryError with 4 GB memory? -Xmx1024m really too much?
I called JRockit version JDK_1.6.0_20-R28.1.0-4.0.1 as follows and got an
Exception in thread "Main Thread" java.lang.OutOfMemoryError
Why? I have on a 64bit Win7 system 4 GB physical memory with hardly any running programs:
"C:\Program Files\JRockit\JDK_1.6.0_20-R28.1.0-4.0.1\bin\java" -Xms512m -Xmx1024m -jar testprog.jar -i -a parm1 parm2
When I lower the -Xmx value to e.g.712m it works. The Task Manager shows 1256 "free" and 2435 "available"
As far as I heard JRockit has the advatage to deal much better with heap space than Suns JDK.
So everything should be fine to run the prog.
So why is there a problem?
Peter