2005-11-14

eclipse 性能问题

The issue is often not the heap itself but the Perm space for classes. Please try these startup arguments: eclipse.exe -vmargs -Duser.language=en -Xms128M -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128M from : http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-9514.html "提高你的Eclipse 性能 通过以下几个方面的设置,你可以让Eclipse跑的更快。 设置内存堆栈 Setting the minimum and maximum heap memory for the JVM gives Eclipse a larger slice of the system's memory pie. By default, the JVM gets a minimal amount of memory, so tell the Java Virtual Machine (JVM) exactly how much memory you want it to have. On Microsoft Windows, UNIX, and Linux, you can edit the "Java" command line to include the minimum and maximum you want. For instance, -Xms64m -Xmx200m. On Mac OS X, you will need to edit the Eclipse application's plist file. Open %ECLIPSE_INSTALLATIONDIR%/Eclipse.app/Contents/Info.plist and edit the Xms and Xmx settings. 屏蔽 Automatic Folding Disable automatic folding by unchecking everything on the Window->Preferences->Java->Editor->Folding tab. 屏蔽 Automatic Code Insight Disable automatic code insight by unchecking "Enable auto activation" on the Window->Preferences->Java->Editor->Code Assist tab. You can still get code insight by simply hitting control-space. 关闭项目 Close all the projects that you are not actively working in. The fewer projects you have open, the fewer files Eclipse has to handle as you update code." http://dev2dev.bea.com.cn/bbs/thread.jspa?forumID=124&threadID=18835&messageID=112344 "從小的的舊帖子上抄過來: (如有需要,請到 http://www.cjsdn.com/post/view?bid=7&id=16864 回應啦!) from: http://www.raibledesigns.com/page/rd/20030312 I (the author) changed my shorcut icon (Win2K) to have the following as it's target: eclipse.exe -vmargs -Xverify:none -XX:+UseParallelGC -XX:PermSize=20M -XX:MaxNewSize=32M -XX:NewSize=32M -Xmx256m -Xms256m Eclipse now starts in a mere 6 seconds (2 GHz Dell, 512 MB RAM). Without these extra settings, it takes 11 seconds to start. That's what I (the author) call a performance increase! (2003-03-12 09:32:04.0) from: http://www.raibledesigns.com/comment.do?method=edit&entryid=065039163189104748672473500018 I (the author) tried this out, but the memory settings don't seem to have anything to do with startup time. 18 seconds - "eclipse.exe" 13 seconds - "eclipse.exe -vmargs -Xverify:none" 12 seconds - "eclipse.exe -vmargs -Xverify:none -XX:+UseParallelGC -XX:PermSize=20M -XX:MaxNewSize=32M -XX:NewSize=32M -Xmx96m -Xms96m" It's only the Xverify:none parameter which has a noticeable effect on reducing startup time. On the java website I found that this parameter turns off bytecode verification ( http://developer.java.sun.com/developer/onlineTraining/Security/Fundamentals/Security.html ), although the default is supposedly "only verify classes loaded over the network". 小的找了一部有500MHz PIII + 384MB的電腦測試 Eclipse 2.1︰ 26 seconds - "eclipse.exe" 18 seconds - "eclipse.exe -vmargs -Xverify:none" 15 seconds - "eclipse.exe -vmargs -Xverify:none -XX:+.... 在我那有大量 plug-ins 的 eclipse 2.1,用了 -vmargs -Xverify:none 啟動時間由10秒降至5-6秒。 似乎在 WSAD 也一樣有效。 " http://www.cjsdn.net/post/view?bid=7&id=20914 Performance Tuning http://www.jdg2e.com/ch32.performance/doc/

0 Comments:

Post a Comment

<< Home