簡體   English   中英

使用Message:-Java堆空間啟動后,Eclipse Kepler崩潰

[英]Eclipse Kepler Crash after startup with Message:-Java heap space

我在例外之下

An internal error occurred during: "Building workspace".
Java heap space

然后我得到

An out of memory has occured. COnsult the "Running Eclipse" section of the read me file on preventing such kind of error in future..........................
DO you want to exit the workbench?

在您的eclipse安裝文件夾中,找到eclipse.ini文件並進行更改

-Xms512m
-Xmx1024m

參數根據您的要求。

您可以使用該常見問題解答http://wiki.eclipse.org/FAQ_How_do_I_increase_the_heap_size_available_to_Eclipse%3F

這表示要修改eclipse.ini文件

重要的

--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vmargs
-Xms1024m
-Xmx2048m
-XX:+UseParallelGC
-XX:PermSize=512M
-XX:MaxPermSize=2048M

只需將其添加到Eclipse VM參數中即可。

-XX:MaxPermSize=256m -Xmx1024m

並重新啟動服務器。

轉到Eclise.ini文件(C:\\ Program Files \\ eclipse-standard-kepler-SR2-win32-x86_64 \\ eclipse \\ eclipse.ini)並使用記事本打開它進行編輯:-Xms256m -Xmx1024m(根據要求)

這將增加堆大小並克服該錯誤。

PS:對於Windows 7及更高版本,“以管理員身份運行”只能保存更改。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM