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:


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

I suggest to switch to a 64bit JVM.

But probably as already suggested, you should also configure your task within eclipse.

Need Your Help

How do I detect unexpected worker role failures and reprocess data in those cases?

azure reliability azure-worker-roles

I want to create a web service hosted in Windows Azure. The clients will upload files for processing, the cloud will process those files, produce resulting files, the client will download them.

Asynchronous loop iOS

iphone objective-c xcode

I have a function perform_function. I want to perform it 1000 times. I would usually write a for-loop to do this e.g. ;