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

启动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了。

猜你喜欢

转载自my.oschina.net/u/3482619/blog/1798146