eclipse内存溢出错误

本文详细介绍了如何解决Eclipse中出现的内存溢出错误及升级后导致项目无法运行的问题。主要通过调整内存配置、删除工作空间相关文件夹并重新导入项目来解决。此外,提供了Eclipse配置文件中的关键参数调整建议。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

eclipse内存溢出错误:
An out of memory error has occurred.Consult the "Running Eclipse" section of read me file

for information on preventing this kind of error in the future.


解决方法:
调一下内存,myeclipse.ini里面把-Xmx -XX:PermSize -XX:MaxPermSize 适当调大些。
如果是eclipse工具,则是在eclipse.ini中改。

-showsplash org.eclipse.platform
--launcher.XXMaxPermSize 256M
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms256m
-Xmx512m

 
 
 
 
 
(二)
 

今天让Eclipse升级以后,运行项目的时候提示出问题了,不能运行下去。错误如下

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 the future.
you are recommended to exit the workbench.
subsequent errors may happen and may terminate the workbench without warning.
see the .log file fro more details.

Periodic workspace save. has encountered a problem.
an internal error occurred during: "periodic workspace save".

解决办法,把Eclipse删掉(这个不重要,不删掉也可以),重新解压出来。

关键是把 原来项目文件夹里的 .metadata 这个文件夹删除掉,然后再启动Eclipse的时候选择这个文件夹,然后再把原来的项目导进去就可以了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值