如何使使用Eclipse的体验更快?
例如:我禁用了所有我不需要的插件(Mylyn, Subclipse,…)
我没有为Mercurial使用插件,而是将TortoiseHG配置为一个外部工具。
如何使使用Eclipse的体验更快?
例如:我禁用了所有我不需要的插件(Mylyn, Subclipse,…)
我没有为Mercurial使用插件,而是将TortoiseHG配置为一个外部工具。
当前回答
禁用病毒扫描程序,或至少将任何病毒扫描程序配置为在读访问时不扫描JAR文件。
其他回答
试试这些。有两种方法。
第一个过程
参考这篇文章。
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
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.
我给了它大量的内存(在启动它的命令中添加一个- xmx开关),并尽量避免退出和重新启动它——我发现最严重的延迟是在启动时,所以给它大量的RAM可以让我在崩溃之前保持更长的时间。
关闭当前未使用的任何打开的项目。
尝试在开发过程中关闭自动发布模式。
我已经禁用了Windows > Preferences > General中所有未使用的选项,它对性能有巨大的积极影响,eclipse在切换选项卡时仍然很慢,我不想增加内存,但在滚动时要快得多。谢谢你的提示。