eclipse 提示::An internal error occurred during: "Building workspace". GC overhead limit exceeded

大早上的打开eclipse ,结果一直在building workspace 。后来就报An internal error occurred during: "Building workspace". GC overhead limit exceeded。

上网查了一些资料。是eclipse.ini 配置的问题。

提示错误如下:
eclipse 提示 An internal error occurred during

eclipse 提示 An internal error occurred during

出现的原因:是Eclipse默认配置内存太小,需要更改Eclipse安装文件夹下的eclipse.ini文件。

解决办法:打开eclipse安装目录下的eclipse.ini文件,默认是如下的:

eclipse 提示 An internal error occurred during

修改如下:

-Xms512m

-Xmx1024m

第一个是最小的初始化内存,第二个是最大的占有内存

还可以加上 -XX:MaxPermSize=1024m这个意思是在编译文件时一直占有最大内存

复制网上一个修改好的eclipse.ini配置代码:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20150204-1316
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms512m
-Xmx1024m
-XX:MaxPermSize=1024m

重启!搞定

相关文章:

  • 2021-06-10
  • 2021-11-21
  • 2021-06-15
  • 2021-10-26
  • 2021-04-03
  • 2021-07-04
  • 2021-08-18
  • 2021-08-28
猜你喜欢
  • 2021-09-30
  • 2022-01-05
  • 2021-10-31
  • 2021-09-28
  • 2021-08-18
  • 2022-01-13
  • 2021-06-21
相关资源
相似解决方案