Eclipse – M2Eclipse crashes Eclipse: java heap space

eclipsem2eclipsemaven-2

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.

Best Answer

set eclipse.ini

-Xms512m
-Xmx1024m

solved my m2eclipse retrieving prototype problem