Eclipse启动报错:An internal error occurred during: "Building workspace".

我与影子孤独终老i 提交于 2019-12-06 08:29:44

启动Eclipse时发现右下角的building workspce走到2%时,不动了,Eclipse好长时间没反应,然后弹出错误信息:An internal error occurred during: "Building workspace". GC overhead limit exceeded。

如下图:

上网搜了一下,说是要修改一下Eclipse安装下的eclipse.ini文件,增加Eclipse实例的内存分配,。打开eclipse.ini文件,内容如下:

 

[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  

相应要编辑的行如下

 

 

[html] view plain copy

 

  1. -Xms512m  
  2. -Xmx1024m  

修改并保存,重启Eclipse就ok了。

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!