MyEclipse 預設載入大量插件、驗證器,導致啟動緩慢、記憶體佔用高。實測 9 項優化後,啟動時間從 45s 降至 15s,堆記憶體從 1.2GB 降至 700MB。
Window → Preferences → General → Startup and Shutdown
取消:WTP、Derby、未使用的 MyEclipse EASIE Server(僅保留 Tomcat/Glassfish)
Preferences → MyEclipse → Validation
Manual 欄全勾選,Build 欄僅保留 "Classpath Dependency Validator"
需要驗證時:右鍵檔案 → MyEclipse → Run Validation
Preferences → General → Editors → Text Editors → Spelling
取消 "Enable spell checking"
Preferences → General → Editors → File Associations
*.jsp → Associated Editors → "MyEclipse JSP Editor" 設為 Default
(取消 Visual Designer 可視化編輯器)
① Maven: Preferences → MyEclipse → Maven4MyEclipse → Maven
取消所有 Download/Update 開頭選項
② 更新排程: General → Startup and Shutdown → Automatic Updates Scheduler 取消
③ 啟動儀表板: Startup → "Show MyEclipse Dashboard on startup" 勾選
① Maven JDK: Preferences → MyEclipse → Maven4MyEclipse → Maven → Add 外部 JDK
② Installed JREs: Java → Installed JREs → Add 外部 JDK 目錄
③ Server JDK: MyEclipse → Servers → Tomcat → JDK 選擇上述外部 JDK
④ dt.jar: MyEclipse → Matisse4MyEclipse/Swing → Design-time information 指向外部 JDK lib/dt.jar
Workspace: General → Workspace → Text file encoding → UTF-8
各編輯器: MyEclipse → Files and Editors → 所有 encoding → ISO 10646/Unicode (UTF-8)
-vmargs
-Xms256m -Xmx512m
-XX:MaxPermSize=512m
-XX:ReservedCodeCacheSize=96m
關閉 Package Explorer 以外的 Outline、Problems、Tasks 等視圖,減少 UI 渲染開銷。
效果:啟動 15s 內、操作流暢無卡頓、長時間開發不再頻繁 Full GC。