I am running a program in Eclipse(Windows) and need a relatively huge size of memory. Passing the -Xmx1500m to the program seems not sufficient, while Eclipse d
-Xmx1500m
r u using 32 bit JVM or 64 bit? use 64 bit JVM. I am not sure about the size limitations on 64 bit , but definitely more than 32 bit.
try this: java -d64 -Xms512m -Xmx60g YourProgram
it sets 60gb as the max heap size.