Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
support-rkalla
Post subject: [Troubleshoot] Getting OutOfMemoryExceptions  PostPosted: Nov 10, 2005 - 02:32 PM
Moderator
Moderator


Joined: Jan 06, 2004
Posts: 23310

9/10 OutOfMemoryExceptions are caused by 1 of 2 things:


    * Your VM has run out of heap space, default heap size is 64mb
    * Your VM has run out of permSpace


As Eclipse based products get larger, the memory requirements go up. MyEclipse is no exception here. The fastest way to work around this issue and also provide some additional boost in performance, we suggest the following command line arguments:

Quote:

-vmargs -Xms128M -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128M


In the past it was sufficient to merely use the -Xmx512m setting, but we have noticed increasingly so with larger Eclipse-based products that running out of permSpace can occur and give OutOfMemoryExceptions as well, which is why we are now suggesting users increase that setting too.

On Windows and Linux it is fairly straight forward to update your shortcut or startup script/launcher/shortcut respectively to include these arguments. On Mac it's a little more confusing. To get at the eclipse.ini file you need to right click on your Eclipse executable, do "Show Contents" then drill down to the Mac OS folder which should contain your eclipse.ini file inside. On Mac, Eclipse ships quite a few default flags in the eclipse.ini file, so you might want to back it up before changing it.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits