如何使使用Eclipse的体验更快?
例如:我禁用了所有我不需要的插件(Mylyn, Subclipse,…)
我没有为Mercurial使用插件,而是将TortoiseHG配置为一个外部工具。
如何使使用Eclipse的体验更快?
例如:我禁用了所有我不需要的插件(Mylyn, Subclipse,…)
我没有为Mercurial使用插件,而是将TortoiseHG配置为一个外部工具。
当前回答
I also tuned vmargs and stuff. But what really sped up Eclipse on Windows is the "proper" configuration of the anti-virus software. You have to disable the on-demand scanning of packed files. jar files, and many files related to java are packed with PKZIP algorithm to spare space. Because Eclipse uses tons of java files, an anti-virus attempts to individually unpack and scan every one of them. So for Windows platform: turn off the on-demand scanning of packed files, otherwise Eclipse will be unusably slow. Please keep in mind, that disabling this unfortunately makes your system weaker against attacks, most of the malware use packers.
其他回答
禁用标签装饰可以获得另一种性能提升 (Windows ->首选项;概述->外观->标签装饰) 在启动时禁用未使用的功能 (Windows ->首选项;一般->启动和关闭)。
您还可以根据JVM选择不同的垃圾收集策略来获得额外的性能。
如果你厌倦了重启周期,你可以使用ZeroTurnaround的JavaRebel。这将缩短重启服务器/客户端的时间。
试试这些。有两种方法。
第一个过程
参考这篇文章。
http://www.javacodegeeks.com/2014/06/the-real-way-to-make-eclipse-run-faster-on-ubuntu.html
第二个过程。
在终端执行命令。
ramdisk
为Ubuntu获得更好的性能和更快的响应。
Ramdisk是系统内存的一部分。Ubuntu默认使用物理内存(RAM)的一半作为ramdisk,并将其挂载到RAM上
/dev/shm
,它可以像普通磁盘空间一样使用(创建文件和文件夹,并以更好的性能操作它们,而不是将它们存储在硬盘上)。如果ramdisk使用了超过一半的RAM,则数据将被转移到交换空间。如果ramdisk使用更少的内存,剩余的内存仍然可以做RAM正在做的事情。
设置ramdisk上限
如上所述,默认情况下,ramdisk可以使用一半的RAM。如果您想更改上限,请执行以下步骤:
使用您最喜欢的编辑器编辑/etc/fstab: Gksudo gedit /etc/fstab .使用实例 找到这一行并更改它使其看起来像这样(如果不存在则添加这一行,并将512M更改为您喜欢的内容): tmpfs /dev/shm tmpfs默认值,size=512M 0 0 重启或重新挂载 /dev/shm
将/tmp挂载到ramdisk上
为了便于使用,可以将目录挂载到
/dev/shm
通过以下命令:
mkdir /dev/shm/tmp
chmod 1777 /dev/shm/tmp
绑定/dev/shm/tmp /tmp
我们使用GIT作为CVS, gradle作为构建工具。
症状
在我的案例中,一个具有> 20 000个文件的特定项目在导航具有大量文件的目录时使用分层视图冻结。
Fix
创建新的Eclipse工作区 将项目重新克隆到Eclipse工作区中 将项目导入Eclipse(在本例中使用Gradle导入)
我也遇到过类似的减速,这个修复只适用于使用Eclipse的C/ c++变体的情况。对于C/ c++,你可能想要禁用索引器,它以占用CPU而闻名。它相当于VS智能感知。 要禁用CDT索引器,请进入Window->Preferences,在C/ c++选项卡下选择indexer并取消选中启用索引器。
也试试这个,它会提高性能:
清理索引-{工作区 路径}.metadata.plugins \ org.eclipse.jdt。核心清理历史—— {工作区 路径}.metadata.plugins \ org.eclipse.core.resources.history
清理上述文件夹不会影响项目文件。