分享

eclipse 内存不够用报错Internal Error

 520jefferson 2016-01-16


由于项目工程比较大,最近使用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条评论

    发表

    请遵守用户 评论公约

    类似文章 更多