tag:Eclipse,内存溢出,Eclipse.ini
启动Eclipse,跳出一个对话框说是JVM terminated. Exit Code=-1,不能启动。在网上搜索解决方案,建议删除eclipse目录下的eclipse.ini(初始化配置文件)。删之,Eclipse动也。但是随之出现的问题是,Eclipse频频挂掉,自动退出,且频繁出现如下内存溢出提示:
MyEclipse has detected that less than 5% of the 64MB of Perm Gen (Non-heap memory) space remains. It is strongly recommended that you exit and restart MyEclipse with new virtual machine memory paramters to increase this memory. Failure to do so can result in data loss. The recommended Eclipse memory parameters are: eclipse.exe -vmargs -Xms128M -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128M
说是VM参数设置太小。
用遍了网上各种办法重新设置,都不管用。
今天才发现是删除了eclipse.ini的缘故,把ini文件放回去,Eclipse又启动不了。搜索发现原来是360的问题!!办公室出于安全考虑,让我们随时开启安全保护,但360似乎限制了每个应用进程的内存申请数量。关闭360安全卫士实时保护就ok了。