简体   繁体   English

使用Message:-Java堆空间启动后,Eclipse Kepler崩溃

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

I am getting below exception 我在例外之下

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

and then i am getting 然后我得到

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?

In your eclipse installation folder, find the eclipse.ini file and change 在您的eclipse安装文件夹中,找到eclipse.ini文件并进行更改

-Xms512m
-Xmx1024m

parameters according to your requirement. 参数根据您的要求。

You can use that faq http://wiki.eclipse.org/FAQ_How_do_I_increase_the_heap_size_available_to_Eclipse%3F 您可以使用该常见问题解答http://wiki.eclipse.org/FAQ_How_do_I_increase_the_heap_size_available_to_Eclipse%3F

which indicates to modify the eclipse.ini file 这表示要修改eclipse.ini文件

the important ones 重要的

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

Just add this in your eclipse VM arguments. 只需将其添加到Eclipse VM参数中即可。

-XX:MaxPermSize=256m -Xmx1024m

and restart the server. 并重新启动服务器。

Go to Eclise.ini file(C:\\Program Files\\eclipse-standard-kepler-SR2-win32-x86_64\\eclipse\\eclipse.ini) and open it with a Notepad to edit: -Xms256m -Xmx1024m (as per Requirement) 转到Eclise.ini文件(C:\\ Program Files \\ eclipse-standard-kepler-SR2-win32-x86_64 \\ eclipse \\ eclipse.ini)并使用记事本打开它进行编辑:-Xms256m -Xmx1024m(根据要求)

This will increase the heap size and overcomes the error. 这将增加堆大小并克服该错误。

PS:for Windows 7 and above,"Run as Administrator" can only Save the Change. PS:对于Windows 7及更高版本,“以管理员身份运行”只能保存更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM