title: Eclipse startup error
body: <p>Today when I started eclipse I got the following error message:</p>
  
  <p>An internal error occurred during: "Updating indexes".
  Java heap space</p>
  
  <p>When I checked the log, there is this exception:</p>
  
  <pre><code>!ENTRY org.eclipse.core.jobs 4 2 2011-06-14 13:44:26.546
  !MESSAGE An internal error occurred during: "Updating indexes".
  !STACK 0
  java.lang.OutOfMemoryError: Java heap space
  at org.sonatype.nexus.index.updater.IndexDataReader.readUTF(IndexDataReader.java:132)
  at org.sonatype.nexus.index.updater.IndexDataReader.readField(IndexDataReader.java:122)
  at org.sonatype.nexus.index.updater.IndexDataReader.readDocument(IndexDataReader.java:96)
  at org.sonatype.nexus.index.updater.IndexDataReader.readIndex(IndexDataReader.java:63)
  at org.sonatype.nexus.index.updater.DefaultIndexUpdater.unpackIndexData(DefaultIndexUpdater.java:564)
  at org.sonatype.nexus.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:252)
  at org.sonatype.nexus.index.updater.DefaultIndexUpdater.access$300(DefaultIndexUpdater.java:74)
  at org.sonatype.nexus.index.updater.DefaultIndexUpdater$LuceneIndexAdaptor.setIndexFile(DefaultIndexUpdater.java:815)
  at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:995)
  at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:159)
  at org.maven.ide.eclipse.internal.index.NexusIndexManager.updateRemoteIndex(NexusIndexManager.java:1085)
  at org.maven.ide.eclipse.internal.index.NexusIndexManager.updateIndex(NexusIndexManager.java:1025)
  at org.maven.ide.eclipse.internal.index.NexusIndexManager$1.run(NexusIndexManager.java:632)
  at org.maven.ide.eclipse.internal.index.IndexUpdaterJob.run(IndexUpdaterJob.java:71)
  at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
  !SESSION 2011-06-14 13:46:30.734 -----------------------------------------------
  eclipse.buildId=M20100909-0800
  java.version=1.6.0_23
  java.vendor=Sun Microsystems Inc.
  BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
  Framework arguments:  -product org.eclipse.epp.package.jee.product
  Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product
  </code></pre>
  
  <p>I tried the following with no success:</p>
  
  <ul>
  <li><p>Increase the memory in the .ini file in eclipse:</p>
  
  <pre><code>-Xms128m
  -Xmx512m
  -XX:MaxPermSize=256m
  </code></pre></li>
  <li><p>Create the environment variable "MAVEN_OPTS:-Xmx256m"</p></li>
  <li><p>Delete the ~/.cache/m2e directoy</p></li>
  </ul>
  
  <p>Does anyone have another idea?</p>