I'm using Eclipse Juno. I have a workspace with 100 or so classes and interfaces spread out over 5 projects. According to a code metrics utility there are about 5,000 lines of code. I have about 5 .java files open.
While I'm running unit tests and saving code, I keep getting this error (It happens as a result of either, sometimes, but not necessarily the first time):
"Error iterating over database keys
Java heap space"
I've tried restarting Eclipse and restarting my computer and the error remains.
My eclipse.ini file looks like this (I edited it per recommendation of this: Out of memory error in eclipse.why?)
-startup
../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20120522-1813
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Xms512m
-Xmx512m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:PermSize=128m
-XX:MaxPermSize=128m