Out of memory error in eclipse.why?

2022-09-01 14:10:18

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.


答案 1

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


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

    Right click on iconeclipse.app

    Click on Show Package Contents

  3. Open fileeclipse.ini

  4. Change below parameters

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

    -XX:PermSize=256m
    -XX:MaxPermSize=512m
    

推荐