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.
-
Do you use Eclipse Oxygen? Why not increase `-Xmx` more? – howlger Aug 12 '17 at 12:53
-
1What is your java version? What is the size of your RAM? Try to increase Xmx even more – Dmitrii Bocharov Aug 12 '17 at 20:44
-
@howlger i am using eclipse luna. Tried increasing it to 4096. Not solved. – shivani thakur Aug 14 '17 at 04:53
-
Tried increasing it to 4096. Not solved. My RAM is 8GB. @bdshadow – shivani thakur Aug 14 '17 at 04:54
-
@bdshadow java version is 1.8 – shivani thakur Aug 14 '17 at 05:20
-
Could you reproduce this issue with the latest version of Eclipse, of the Maven plug-in and of Maven? – howlger Aug 14 '17 at 07:02
-
Try to go to the workspace directory. Find there .metadata directory. There must be a .log file inside. Try to find OutOfMemoryError error there. What has been logged before it? You can add it to your question, or use https://pastebin.com/ to share it with us – Dmitrii Bocharov Aug 14 '17 at 08:59
-
@howlger tried updating luna version that i am using but error remains same. So installed oxygen-eclipse, and working. Thank-you for your help. – shivani thakur Aug 15 '17 at 07:22
-
@bdshadow tried it but error remains same. Now oxygen-eclipse, and working there. Thank-you for your help. – shivani thakur Aug 15 '17 at 07:23
-
@aakashrajani Great, I added it as answer. – howlger Aug 15 '17 at 08:27
3 Answers
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

- 819
- 8
- 15
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:
- In Window > Preferences: Install/Update > Available Software Sites click Add...:
- Name:
Oxygen
- Location:
http://download.eclipse.org/releases/oxygen
- Name:
- Help > Check for Updates

- 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