啓動Eclipse時發現右下角的building workspce走到2%時,不動了,Eclipse好長時間沒反應,而後彈出錯誤信息:An internal error occurred during: "Building workspace". GC overhead limit exceeded。html
以下圖:eclipse
上網搜了一下,說是要修改一下Eclipse安裝下的eclipse.ini文件,增長Eclipse實例的內存分配,。打開eclipse.ini文件,內容以下:ui
[html] view plain copyspa
- -startup
- plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
- --launcher.library
- plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807
- -product
- org.eclipse.epp.package.jee.product
- --launcher.defaultAction
- openFile
- --launcher.XXMaxPermSize
- 256M
- -showsplash
- org.eclipse.platform
- --launcher.XXMaxPermSize
- 256m
- --launcher.defaultAction
- openFile
- -vmargs
- -Dosgi.requiredJavaVersion=1.5
- -Dhelp.lucene.tokenizer=standard
- -Xms512m
- -Xmx1024m
相應要編輯的行以下.net
[html] view plain copyorm
- -Xms512m
- -Xmx1024m
修改並保存,重啓Eclipse就ok了。htm