Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Out of memory error in eclipse.why?

When i create a new project in "Eclipse" IDE.Suddenly it shows an alert message "Out of memory error".I cannot identify the reason. If any one know the reason please tell me.

like image 381
sivakumar Avatar asked Jul 25 '11 12:07

sivakumar


3 Answers

Try to start eclipse with follow paramenters:

eclipse.exe -vmargs -Xms512m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=128m

Or justify these parameters for your requirements

like image 78
alexblum Avatar answered Oct 21 '22 04:10

alexblum


  1. Go to your Eclipse setup folder
  2. If you are running Eclipse on Mac OS X then

    Right click on eclipse.app icon

    Click on Show Package Contents

  3. Open eclipse.ini file

  4. Change below parameters

    -Xms512m
    -Xmx3000m (Hoping your developer box has >4GB of memory)
    
  5. Add below parameters

    -XX:PermSize=256m
    -XX:MaxPermSize=512m
    
like image 19
Iman Marashi Avatar answered Oct 21 '22 06:10

Iman Marashi


The most obvious explanation is that you are truly out of memory. In which case starting Eclipse with a bigger heap should help

 -vmargs -Xmx256M

varying the 256M to see what works for you.

I would not expect to see this problem if you have just a few simple projects. If you are using additional plugins then conceivably the amount of heap you need may need to be increased.

like image 4
djna Avatar answered Oct 21 '22 06:10

djna