2
votes

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 line ,still its not working.

5
Does Maven call on command line work?khmarbaise
You might get more info if you provide more info - precisely what the exceptions said, and exactly how you tried to increase the heap size in eclipse.ini.Ed Staub
possible duplicate of Eclipse startup errorRobert Munteanu

5 Answers

5
votes

set eclipse.ini

-Xms512m
-Xmx1024m

solved my m2eclipse retrieving prototype problem

1
votes

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.

0
votes

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

0
votes

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

Matt

0
votes

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