你如何加速Eclipse? [英] How can you speed up Eclipse?

查看:201
本文介绍了你如何加速Eclipse?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使Eclipse更快地体验Eclipse?



例如:我禁用了我不需要的所有插件(Mylyn,Subclipse,…)。



而不是使用 Mercurial 的插件,我配置 TortoiseHG 作为外部工具。

解决方案

Eclipse速度的三个最有影响力的因素是:




  • 使用最新版本的Eclipse (3.4 Ganimede at 2008年写作时间)

    请注意, DavidBalažic评论(2014年7月)与正在工作的六项标准相矛盾几年前:




Indigo(3.7.2)SR2中的相同工作区在4秒内加载nds,在开普勒SR2(4.3.2)中,在7秒内,在Luna(4.4.0)中,10秒钟内。都是Java EE软件包。较新版本具有更多的捆绑插件,但仍然趋势显而易见。 (通过相同工作区我的意思是:使用相同的(另外安装的)插件,相同的项目从版本控制中检出)。





  • 使用最新的JDK 启动它(在编写时为1.7),这不会阻止您使用任何其他JDK编译Eclipse项目:1.4。 2,1.5,1.6旧...)



    -vm jdk1.6.0_10\jre\bin\client\jvm。 dll


  • 配置 eclipse.ini (请参阅这个完整的eclipse.ini的问题



    -Xms128m
    -Xmx384m
    -XX:MaxPermSize = 128m注意:这个选项在Java 8中已经过时,它将被忽略
    -Xss2m
    [...]




Xmx 参数是Eclipse将获得的内存量(简单来说)。使用 -Xmx384m ,它获得384 MB的RAM,其中 -Xmx4G 它获得4 GB等。 / p>




注意:


  1. p>参考jvm.dll有优势:




    • Splash屏幕更快出现。

    • Eclipse.exe在进程列表中而不是java.exe。

    • 防火墙:Eclipse希望访问Internet而不是Java。

    • 窗口管理品牌问题,特别是在Windows和Mac上。



    但是,如果您尝试推内存太高


  2. Eclipse使用的默认内存是 MaxPermSize和Xmx 。这里最多可以支持512MB的总计,这对于1GB的内存计算机来说是足够的。



How can you make the experience with Eclipse faster?

For instance: I disable all the plugins I don't need (Mylyn, Subclipse, …).

Instead of using a plugin for Mercurial, I configure TortoiseHG as an external tool.

解决方案

The three most influential factors for Eclipse speed are:

  • Using the latest version of Eclipse (3.4 Ganimede at the time of writing in 2008)
    Note that David Balažic's comment (July 2014) contradicts that criteria which was working six years ago:

The "same" workspace in Indigo (3.7.2) SR2 loads in 4 seconds, in Kepler SR2 (4.3.2) in 7 seconds and in Luna (4.4.0) in 10 seconds. All are Java EE bundles. Newer versions have more bundled plugins, but still the trend is obvious. (by "same" workspace I mean: same (additionally installed) plugins used, same projects checked out from version control).

  • Launching it with the latest JDK (1.7 at the time of writing, which does not prevent you to compile in your Eclipse project with any other JDK you want: 1.4.2, 1.5, 1.6 older...)

    -vm jdk1.6.0_10\jre\bin\client\jvm.dll

  • Configuring the eclipse.ini (see this question for a complete eclipse.ini)

    -Xms128m -Xmx384m -XX:MaxPermSize=128m # NOTE: this option is obsolete in Java 8, it will be ignored -Xss2m [...]

The Xmx argument is the amount of memory Eclipse will get (in simple terms). With -Xmx384m, it gets 384 MB of RAM, with -Xmx4G it gets 4 GB, etc.


Note:

  1. Referring to the jvm.dll has advantages:

    • Splash screen coming up sooner.
    • Eclipse.exe in the process list instead of java.exe.
    • Firewalls: Eclipse wants access to the Internet instead of Java.
    • Window management branding issues, especially on Windows and Mac.

    But it can also have some drawbacks if you try to push the memory too high.

  2. The default memory taken by Eclipse is the combination of MaxPermSize and Xmx. Here up to 512 MB total, which is quite enough for a 1 GB memory computer.

这篇关于你如何加速Eclipse?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆