Eclipse Kepler 在启动后崩溃 消息:-Java 堆空间

2022-09-03 03:45:35

我得到以下例外

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?

答案 1

在 eclipse 安装文件夹中,找到 eclipse.ini 文件并更改

-Xms512m
-Xmx1024m

参数根据您的要求。


答案 2

您可以使用该常见问题解答 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

推荐