2

I have installed Eclipse Juno and integrated Maven, but when I try to create a Maven project, it is showing the error, Retrieving archetypes: GC overhead limit exceeded. Before I had Juno installed, I Kepler installed and used the same Maven and it worked fine.

Tripp Kinetics
  • 5,178
  • 2
  • 23
  • 37
Pradeep
  • 1,192
  • 2
  • 12
  • 30

1 Answers1

7

You might have lost your JVM tuning around heap size with new installation

edit your eclipse.ini

and modify the values below to change Java's initial & maximum memory allocation

-vmargs
-Xms512mm
-Xmx2g

Provide appropriate values as per your environment.

Stevoisiak
  • 23,794
  • 27
  • 122
  • 225
jmj
  • 237,923
  • 42
  • 401
  • 438
  • increased heap memory to 2GB but still am facing the same issue@jigar – Pradeep Feb 26 '15 at 20:02
  • but my old projects which are there in my eclipse IDE shows red color cross mark on top of project.but project running fine.why it is showing as error? – Pradeep Feb 26 '15 at 20:09
  • `windows > show view > problems` will show your all the error messages – jmj Feb 26 '15 at 20:09
  • @JigarJoshi Thanks for your solution... I resolved this issue with your answer :) – Madhusudan May 12 '16 at 15:44
  • @JigarJoshi: I am using Eclipse Neon 3 in Windows, -Xms512mm not work: "Cannot create Java virtual machine", when I change to -Xms512m, its worked, is it a type or have some mean? – Andiana Jul 08 '17 at 04:37
  • 1
    One important note is to fully restart Eclipse. If you use the `Restart` option from the main menu, the memory settings seem to be preserved. – JohnEye Mar 15 '18 at 12:16