Sachin
Sachin

Reputation: 21

M2Eclipse crashes Eclipse: java heap space

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.

Upvotes: 2

Views: 9652

Answers (5)

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

Upvotes: 0

qints
qints

Reputation: 11

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.

Upvotes: 1

MattLieber
MattLieber

Reputation: 53

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

Matt

Upvotes: 0

BrownsFan
BrownsFan

Reputation: 41

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

Upvotes: 0

Spech
Spech

Reputation: 55

set eclipse.ini

-Xms512m
-Xmx1024m

solved my m2eclipse retrieving prototype problem

Upvotes: 5

Related Questions