简体   繁体   English

Eclipse Luna + ADT-在Mac上运行应用程序时冻结99%

[英]Eclipse Luna + ADT -freeze 99% when running app on mac

I was using Eclipse Luna + ADT, everything was fine, but today, when I try to run my project in my cel, it freezes to 99%, and then says: 我使用的是Eclipse Luna + ADT,一切都很好,但是今天,当我尝试在cel中运行项目时,它冻结到99%,然后说:

Unable to execute dex: GC overhead limit exceeded

and then : 接着 :

Unhandled loop expected

The only solution I find is go back to ADT Bundle ( w/ Kepler), but I don't love this solution as Eclipse is very outdate... 我发现的唯一解决方案是回到ADT Bundle(w / Kepler),但是我不喜欢这种解决方案,因为Eclipse太过时了...

Any help will be appreciated 任何帮助将不胜感激

This Link Helped me a lot. 链接对我有很大帮助。

As what is said in the link above, you should increase the size of memory used by eclipse. 就像上面链接中所说的,您应该增加eclipse使用的内存大小。

Just open the eclipse.ini file, located in the same folder as eclipse.exe is located by a text editor. 只需打开eclipse.ini文件,该文件与文本编辑器位于eclipse.exe所在的文件夹中即可。 The original eclipse.ini file looks like this: 原始的eclipse.ini文件如下所示:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140116-2212
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m

Now change the last 2 lines to: 现在将最后两行更改为:

-Xms512m
-Xmx1024m

You can also increase the value of MaxPermSize, as the following: 您还可以增加MaxPermSize的值,如下所示:

-XX:MaxPermSize=1024m

This solution helped me and solve my problem. 该解决方案帮助我解决了我的问题。

Good luck 祝好运

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM