Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An internal error occurred during: "Updating indexes".Java heap space during eclipse start up?

I am getting below error while starting eclipse

An internal error occurred during: "Updating indexes".Java heap space?

It was running fine half an hour before.I restarted the eclipse and getting this error now? i have 8 gb ram,window 7 64 bit OS. i have tried restarting my system but nothing helped?

-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222
-showsplash
org.eclipse.platform
-showLocation
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-vm
C:/Program Files (x86)/Java/jdk1.6.0_25/bin/javaw.exe
-vmargs
-Dfile.encoding=UTF-8
-Dosgi.requiredJavaVersion=1.5
-Xms512m
-Xmx1024m

Not sure what i is the issue?

like image 261
emilly Avatar asked Feb 08 '13 12:02

emilly


2 Answers

If you have m2e or other Maven plugin installed, you should check if the option at 'Window -> Preferences -> Maven -> Download repository updates index on startup' is enabled. Disable it and see if it resolves out of memory issue.

like image 172
Horizon Avatar answered Oct 20 '22 17:10

Horizon


If you are using eclipse or myeclipse, you can increase memory by making changes in .ini file (myeclipse.ini)

-Xmx2048m

-XX:MaxPermSize=1024m

-XX:ReservedCodeCacheSize=512m

-Dosgi.nls.warnings=ignore

It will solve problem connected with heap space.

like image 35
Anahit Serobyan Avatar answered Oct 20 '22 18:10

Anahit Serobyan