java has not enouth space, how to increase it?
I need to run a very big task in eclipse. So I changed the eclipse.ini to:
--launcher.defaultAction openFile -vmargs -Xms64m -Xmx1024m
but this is still not enough. When I increase the Xmx to 2048 and try to start eclipse I get the message:
Failed to create the Java VM
How to avoid this? My system has 8Gb of RAM. So 2gb for Java should be no problem. Why doesn't it start?
I am assuming you are using windows. You can only apply maximum 2GB to a 32bit process. see http://msdn.microsoft.com/en-us/library/windows/desktop/aa366778(v=vs.85).aspx#memory_limits
I suggest to switch to a 64bit JVM.
But probably as already suggested, you should also configure your task within eclipse.