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
rossella ladogana 6rossella ladogana 6 

Java heap error- OutOfMemory in EclipseIDE

Hello,
after several attemts, I have tried to import from my developer sandbox just ONE custom class, to check if the problem can be an out of memory. Again in this case, with just one apex class, i've got the java heap error for OutOfMemory.
I've found different answers about this kind of problem for DataLoader but not in EclipseIDE.
Does anyone have a possibile answer or solution?

Best regards

Rossella
Ruthvik K 5Ruthvik K 5
Can you verify the java memory setup in eclipse.ini
rossella ladogana 6rossella ladogana 6
I read some posts about that, I think it shouldn't be modified:
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms256m
-Xmx1024m

What you think about that?
rossella ladogana 6rossella ladogana 6
Also, my collegues did the same with more classes from our sandbox and it works. Could it be a connection/proxy problem even if the error is about the heap?
rossella ladogana 6rossella ladogana 6
I modified the Xmx properties with 2GB. It seems working :) Thanks for the answer