function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
dmchengdmcheng 

Java heap space error when creating project in Eclipse IDE

I'm unable to create a project for a particular instance when using Eclipse Kepler, but I can create projects for other instances.

I'm getting an Eclipse error "Unable to create project.  Reason outOfMemory error: Java heap space".

I've made the following settings in my Eclipse.ini file but I'm still getting the error.  
-Xms256m
-Xmx1024m
-XX:PermSize=128m
-XX:MaxPermSize=512m

I'm using 32-bit Kepler on Windows 7 SP1.  Again, I am able to create projects for other sandbox instances, but not this particular instance.
Best Answer chosen by dmcheng
KevinPKevinP
This can happen with very large orgs, or with very large metadata sets. I've had success by doing any one of the following:

1: Upgrade to a 64 bit jvm, and Kepler
2: Upgrade your Xmx to 2048m (2gb heap)
3: Use Mavensmate for Sublime Text
4: Use Mavensmate for Atom. 

Options 3 & 4 have the added benefit of getting you off eclipse!

 

All Answers

KevinPKevinP
This can happen with very large orgs, or with very large metadata sets. I've had success by doing any one of the following:

1: Upgrade to a 64 bit jvm, and Kepler
2: Upgrade your Xmx to 2048m (2gb heap)
3: Use Mavensmate for Sublime Text
4: Use Mavensmate for Atom. 

Options 3 & 4 have the added benefit of getting you off eclipse!

 
This was selected as the best answer
dmchengdmcheng
Thanks Kevin, #2 worked.  Yes I already use Mavensmate / Sublime, but I wanted to use Eclipse to see which files had changed on the sandbox vs production.