1

when I am creating a maven project and while archetypes is being retrieved ,I am getting this error called gc overhead limit exceeded

I tried to increase the memory allocation for Eclipse by increasing the Xms and Xmx values -Xms512m and -Xmx1024m respectively in eclipse.ini but still not resolved.

Community
  • 1
  • 1
shivani thakur
  • 219
  • 1
  • 3
  • 12

3 Answers3

0

what finally works for me is opening eclipse in a new workspace.

walter
  • 539
  • 5
  • 5
0

In settings, go to Maven -> Archetypes and make sure that Nexus Indexer is disabled. I'm guessing that, because there are so many archetypes on the maven nexus, you just go out of memory trying to fetch it. Make sure that Default Local is still enabled and every archetype that you have used before will still be visible.

@user2735883, The reason why a new workspace would work as well is because by default the option to download the repository index on startup is disabled. If you enable it, it will start pulling the nexus archetypes and you'll go out of memory again

sirolf2009
  • 819
  • 8
  • 15
-1

Most of the known out of memory errors in the Eclipse Maven plug-in are alread fixed. Therefore, an update of your more than three years old Maven plug-in could help. Either download and install the latest Eclipse IDE from scratch or update your existing Eclipse IDE from Luna to Oxygen:

  1. In Window > Preferences: Install/Update > Available Software Sites click Add...:
    • Name: Oxygen
    • Location: http://download.eclipse.org/releases/oxygen
  2. Help > Check for Updates
howlger
  • 31,050
  • 11
  • 59
  • 99
  • Nothing to do with the link mention or the procedure you suggest. There STILL a problem with the Nexus indexer and this workaround work : https://stackoverflow.com/questions/15506043/create-a-maven-project-in-eclipse-complains-could-not-resolve-archetype – Steve S. Jul 28 '18 at 23:26
  • @SteveS. For the questioner, an update to Eclipse Oxygen solved the problem (see comments). Obviously, there is another problem when using a proxy which leads also to an _out of memory_ error but for other reasons. – howlger Jul 29 '18 at 11:17