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
TheMythicalTheMythical 

My Force.com IDE is not working

I installed the latest force.com IDE version 16.0, then every five minutes, there will be error: java heap out of memory. I am wondering why?
JonPJonP

The answer is in the Force.com IDE FAQ:

 

http://wiki.developerforce.com/index.php/Force.com_IDE_FAQ#How_do_I_solve_out_of_memory_issues.3F (link)

TheMythicalTheMythical
I tried the method to increase the memory, but it doesn't work...
JonPJonP
How much additional memory did you give it?  How much memory (real and virtual) do you have on your computer?  How many metadata files are in each Force.com project?
TheMythicalTheMythical

My eclipse ini file settings:-showsplash
org.eclipse.platform
-framework
plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xmx512m
-Xmx1024m

 

I have around 30-40 files including apex classes, pages, staticresources and components. Thanks!

JonPJonP
You have the "-Xmx" (max heap size) param specified twice.  The first one should be "-Xms", for min heap size.
TheMythicalTheMythical

in the solution http://wiki.developerforce.com/index.php/Force.com_IDE_FAQ#How_do_I_solve_out_of_memory_issues.3F

 

it uses XMX twice :(

JonPJonP

So it did.  Thanks for pointing that out.  It's fixed now!

 

Now the real question is, did that solve your OOM issue?

TheMythicalTheMythical
seems no...