Eclipse startup error: An internal error occurred during: "Building workspace".

When I started Eclipse, I found that when the building workspace in the lower right corner reached 2%, it did not move. Eclipse did not respond for a long time, and then an error message popped up: An internal error occurred during: "Building workspace". GC overhead limit exceeded.

As shown below:

I searched the Internet and said that I need to modify the eclipse.ini file under the Eclipse installation to increase the memory allocation of the Eclipse instance. Open the eclipse.ini file with the following contents:

 

[html] view plain copy

 

  1. -startup  
  2. plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar  
  3. --launcher.library  
  4. plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807  
  5. -product  
  6. org.eclipse.epp.package.jee.product  
  7. --launcher.defaultAction  
  8. openFile  
  9. --launcher.XXMaxPermSize  
  10. 256M  
  11. -showsplash  
  12. org.eclipse.platform  
  13. --launcher.XXMaxPermSize  
  14. 256m  
  15. --launcher.defaultAction  
  16. openFile  
  17. -vmargs  
  18. -Dosgi.requiredJavaVersion=1.5  
  19. -Dhelp.lucene.tokenizer=standard  
  20. -Xms512m  
  21. -Xmx1024m  

The corresponding lines to be edited are as follows

 

 

[html] view plain copy

 

  1. -Xms512m  
  2. -Xmx1024m  

Modify and save, restart Eclipse and it will be ok.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326036021&siteId=291194637