
Eclipse Juno 剛剛自我更新,現在啟動後立即掛起。從控制台運行它會顯示以下錯誤:
ian@vega ~/Applications/eclipse> ./eclipse
Exception in thread "Worker-1"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Worker-1"
Exception in thread "Worker-8"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Worker-8"
Exception in thread "State Saver"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "State Saver"
Exception in thread "Timer-0"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Timer-0"
我正在 OSX 上使用最新的 Java 版本運行 Eclipse:
ian@vega ~/Applications/eclipse> java -version
java version "1.7.0_08-ea"
Java(TM) SE Runtime Environment (build 1.7.0_08-ea-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.4-b01, mixed mode)
我認為它可能需要更大的堆,所以我創建了以下 eclipse.ini 檔案並為其提供了最多 4 GB 的 RAM(我的筆記型電腦有 16 GB):https://gist.github.com/3804519
當啟動畫面不再顯示時,eclipse.ini 檔案似乎已被拾取,但它仍然凍結。
有人有什麼想法嗎?
答案1
我今天更新 eclipse juno 後遇到了同樣的問題。對我來說,創建一個 eclipse.ini (事先沒有)內容為 --launcher.XXMaxPermSize 256m 解決了問題。 Macosx 10.8.2 上的 jdk 1.7.0_04 和 1.6.0_35 相同。乾杯!