Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
277 views
in Technique[技术] by (71.8m points)

eclipse - 您如何加速Eclipse?(How can you speed up Eclipse?)

How can you make the experience with Eclipse faster?

(如何使Eclipse体验更快?)

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

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

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

(我没有使用Mercurial插件,而是将TortoiseHG配置为外部工具。)

  ask by community wiki translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The three most influential factors for Eclipse speed are:

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

  • Using the latest version of Eclipse (3.4 Ganimede at the time of writing in 2008)

    (使用最新版本的Eclipse (在2008年撰写本文时为3.4 Ganimede))
    Note that David Bala?ic 's comment (July 2014) contradicts that criteria which was working six years ago:

    (请注意, DavidBala?ic评论 (2014年7月)与六年前行之有效的标准背道而驰 :)

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.

(Indigo(3.7.2)SR2中的“相同”工作空间在4秒内加载,Kepler SR2(4.3.2)在7秒内加载,Luna(4.4.0)在10秒内加载。)

All are Java EE bundles.

(所有都是Java EE捆绑包。)

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...)

    (使用最新的JDK (在撰写本文时为1.7)启动它,这并不妨碍您使用所需的任何其他JDK在您的Eclipse项目中进行编译:1.4.2、1.5、1.6较早...))

     -vm jdk1.6.0_10\jre\bin\client\jvm.dll 
  • Configuring the eclipse.ini (see this question for a complete eclipse.ini )

    (配置eclipse.ini有关完整的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).

(Xmx参数是Eclipse将获得的内存量(简单来说)。)

With -Xmx384m , it gets 384 MB of RAM, with -Xmx4G it gets 4 GB, etc.

(使用-Xmx384m ,它将获得384 MB的RAM;使用-Xmx4G它将获得4 GB的内存, -Xmx4G 。)


Note:

(注意:)

  1. Referring to the jvm.dll has advantages:

    (引用jvm.dll有很多优点:)

    • Splash screen coming up sooner.

      (启动画面会更快出现。)

    • Eclipse.exe in the process list instead of java.exe.

      (进程列表中的Eclipse.exe而不是java.exe。)

    • Firewalls: Eclipse wants access to the Internet instead of Java.

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

    • Window management branding issues, especially on Windows and Mac.

      (窗口管理品牌问题,尤其是在Windows和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 .

    (Eclipse占用的默认内存是MaxPermSize和Xmx组合 。)

    Here up to 512 MB total, which is quite enough for a 1 GB memory computer.

    (总共最多 512 MB,对于1 GB内存的计算机来说已经足够了。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...