eclipse 内存不够用报错Internal Error

来源:互联网 发布:d5600和d7100 知乎 编辑:程序博客网 时间:2024/06/10 04:22


由于项目工程比较大,最近使用eclipse常常出现内存溢出的报错,运行的时候eclipse 就通过不了,报错,好不容易解决了。 
eclipse报错如下: 
1.
Internal Error 
An out of memory error has occurred.Consult the "Running Eclipse" section of the read me file for information on preventing this kind of error in future. 
You are recommended to exit the workbench. 
Subsequent errors may happen and may terminate the workbench without warning. 
See the .log file for more details.






另外还有一些报错: 
unable to create new native thread. 
Unhandled event loop exception. 
java.lang.OutOfMemoryError.






An internal error occurred during: "Searching for markers".
Java heap space


Internal Error
Java heap space




An internal error has occurred.

java.lang.NullPointerException




方法是:找到安装目录中的eclipse.ini 文件,修改内存设置的部分: 
-Xms40m 
-Xmx512m


启动ecplise时,单击ecplise标图 右键-》属性-》快捷方式-》目标 里面加-clean  -vmargs -Xms512m -Xmx800m -XX:PermSize=256m 
例如F:ecplise-YouYuneclipse3.2eclipse2.0 -clean  -vmargs -Xms512m -Xmx800m -XX:PermSize=256m 。启动eclipse就可以了















0 0