Eclipse keep closing suddenly

三世轮回 提交于 2020-01-13 11:02:07

问题


Recently I have lots of problems with eclipse, it keeps on crashing, closing abruptly, don't work well at all.

It happens too much, like in every 10 -15 minutes.

The CPU and RAM are 50% free when this happens.

This is the eclipse.ini file:

    -startup
    plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize

    --launcher.defaultAction
    openFile
    -vmargs
    -Xms40m
    -Xmx512m

What is the problem ? It's really bothering!


回答1:


add the line

-XX:-UseCompressedOops

to eclipse.ini

but if you are using this windows 7 then rather add

 -XX:+UseCompressedOops

Even try running ecipse as administrator. If this even works then try opening with java.exe instead of javaw.exe. I hope this will work!




回答2:


Create a new Workspace. Import your stuffs into it. That worked for me.




回答3:


First before you do ANYTHING check the log: Look at the workspace/.metadata/.log file. In my case it was just some error with a subversion update using subclipse.




回答4:


Navigate to a hidden directory in your Eclipse Workspace named .metadata, delete it, and start eclipse. Files in the .metadata directory seem to cause recurrent problems once Eclipse begins to crash.



来源:https://stackoverflow.com/questions/23602413/eclipse-keep-closing-suddenly

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!