添加Google Play服务库后,显示超出了Gc开销限制

时间:2015-01-07 10:41:32

标签: google-play-services eclipse-luna

如果我将google play服务库添加到我的项目中,则会显示超出gc开销限制!

这是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.v20140603-1326
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
1024M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
1024m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms512m
-Xmx1024m

1 个答案:

答案 0 :(得分:1)

我也遇到了同样的问题。然后我为xms和xmx设置值为2048。然而,在几秒钟内观察到高CPU使用率,但它起作用。

-Xms2048m
-Xmx2048m