Posted By:
Peter_VanBuskirk
Posted On:
Wednesday, June 1, 2005 12:49 PM
Hello, I'm developing a program that demands a good deal of heap memory for image queuing and processing. After battling with some OOM errors I found out how to set the Java and Eclipse heap settings. They currently both have the arguments "-vmargs -Xms512M -Xmx1024M". However, when I run my program in Eclipse with those arguments and output the maximum memory at different points I see that Runtime.getRuntime().maxMemory() = 66650112, which is ~66.6MB. My program still crashes due to the size of the heap but I do not know of any other way to increase it. Has anyone ever seen this type of problem before? Can you recommend any troubleshooting tips? My JRE
More>>
Hello,
I'm developing a program that demands a good deal of heap memory for image queuing and processing. After battling with some OOM errors I found out how to set the Java and Eclipse heap settings. They currently both have the arguments "-vmargs -Xms512M -Xmx1024M".
However, when I run my program in Eclipse with those arguments and output the maximum memory at different points I see that
Runtime.getRuntime().maxMemory()
= 66650112, which is ~66.6MB.
My program still crashes due to the size of the heap but I do not know of any other way to increase it. Has anyone ever seen this type of problem before? Can you recommend any troubleshooting tips?
My JRE/JDK version is 1.5.0_02 and my Eclipse version is 3.0.2.
Thanks,
Peter
<<Less