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
you need to run a 64Bit vm to allow more than around -Xmx1500m
You may specify that in the Run-Settings for your program and do not need to apply it in the eclipse.ini which is for eclipse itself.
BUT: it is not a good idea to give the java-vm more memory than the real (physical, free) memory on your system is, because the GC will walk through many areas of the memory when it runs and that will lead to reading/writing memory from/to disk - means swapping. And this again will lead to a very bad performance. In this case you should think about what is consuming the memory and if there is a way to manage this data externally - on disk or some MemoryBuffers.