you need to run 64Bit vm to allow more than about -Xmx1500m
You can specify this in the Launch Options for your program and do not need to apply it in eclipse.ini, which is intended for the eclipse itself.
BUT: it’s nice to give java-vm more memory than the real (physical, free) memory on your system, because the GC will go through many memory areas when it works, and this will lead to reading / writing memory from / to disk - means exchange. And that again will lead to a very bad job. In this case, you should think about what memory consumes, and if there is a way to manage this data from the outside - on disk or in some MemoryBuffers.
cybye
source share