开发者

M2Eclipse crashes Eclipse: java heap space

开发者 https://www.devze.com 2023-03-31 14:21 出处:网络
I have installed M2Eclipse plugin for maven , but after installing plugin when i tried to proceed then eclipse shows error\'s and get crashed,slow or hanged.

I have installed M2Eclipse plugin for maven , but after installing plugin when i tried to proceed then eclipse shows error's and get crashed,slow or hanged.

It shows following error : Background Indexer Crash Recovery java heap space .. and many more similar exceptions.

I have increased heap size in eclipse.ini file but this issue was not get solved. I have also increased heap space using command : java -Xms -Xmx through command开发者_Go百科 line ,still its not working.


set eclipse.ini

-Xms512m
-Xmx1024m

solved my m2eclipse retrieving prototype problem


I met the same problem, but, it's not working to increase the heap space. So, I created a new workspace, amazing, everything was normal: I could see the archetypes list again. I guessed something wrong with the m2eclipse plugin, So, I deleted the folders that whoes name contains characters 'm2e' in the path 'workspace.metadata.plugins'. And then, I restarted the eclipse, everything returned to normal.The problem has been solved.


In eclipse.ini, I changed

-Dosgi.requiredJavaVersion=1.7 -Xms40m -Xmx1024m -XX:MaxPermSize=512m

to

-Dosgi.requiredJavaVersion=1.7 -Xms512m -Xmx1024m -XX:MaxPermSize=512m

In other words, I raised the initial heap size. That resolved it for me. My allowed heap size when actually running Eclipse Indigo rose from 64 MB to 169 MB


I did all of the above, to no change - I ended up just creating a new workspace! And everything went back to normal ..

Matt


Mine worked by change -Dosgi.requiredJavaVersion=1.7 -Xms512m -Xmx1024m -XX:MaxPermSize=512m

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号