Java 如何修复此错误“Eclipse 中超出 GC 开销限制”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19570209/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to fix this error "GC overhead limit exceeded in Eclipse"
提问by issam
How to fix this error "GC overhead limit exceeded in Eclipse". This problem was occurred when I used graphical layout from ADT android.
如何修复此错误“Eclipse 中超出 GC 开销限制”。当我使用 ADT android 的图形布局时发生了这个问题。
回答by Varun
eclipse.ini file can be edited. Increase the values for memory usage. Please see the sample eclipse.ini file below.
eclipse.ini 文件可以编辑。增加内存使用的值。请参阅下面的示例 eclipse.ini 文件。
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms512m
-Xmx1024m
回答by HariKishore
MAC / IOS Users
MAC / IOS 用户
RightClick on Eclipse.app and then click on Show Package Content Now Open Content folder to find the eclipse.ini file and edit
右键单击 Eclipse.app,然后单击 Show Package Content Now Open Content 文件夹找到 eclipse.ini 文件并编辑
-Xms512m
-Xmx2048m