为什么需要定期重启Eclipse以防止性能下降?

时间:2013-01-14 18:30:40

标签: android eclipse development-environment

Eclipse开始使用四核12GB Windows 8计算机的速度很慢。即使对于打开文件这样的简单活动,它也会随着时间的推移而减慢到爬行速度。重新启动Eclipse会恢复其初始性能。

有没有办法在不重新启动的情况下防止其性能随时间而恶化?

我使用Eclipse进行Android应用开发

添加了: 以下是eclipse.ini的内容:

-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.v20120522-1813
-product
org.eclipse.epp.package.java.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
-Xms40m
-Xmx1024m

1 个答案:

答案 0 :(得分:4)

我想知道您的eclipse内存设置是否设置得太低。即使您的计算机有大量内存,如果您的设置使用默认值,您的Eclipse实例也可能没有使用所有可用资源。

这是一个很好的问题: What are the best JVM settings for Eclipse?

我不必经常关闭Eclipse,因此我认为这不是正常行为 - 尤其是在拥有尽可能多资源的计算机上。