title: StackOverflowError in Eclipse while running Java code
body: <p>Lately i ran into some memory issues which i have been trying to solve the paste few days, but unfortunately without any luck!</p>
  
  <p>I am running Mac OS X 10.6.8 / 8GB RAM (Should not be any allocation problems!)</p>
  
  <p>Eclipse version is Helios.</p>
  
  <pre><code>java -version
  java version "1.6.0_29"
  Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-10M3527)
  Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)
  </code></pre>
  
  <p>My Java exception:</p>
  
  <pre><code>Exception in thread "main" java.lang.StackOverflowError
  </code></pre>
  
  <p>And my eclipse.ini:</p>
  
  <pre><code>-startup
  ../../../plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
  --launcher.library
  ../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.0.v20100503
  -product
  org.eclipse.epp.package.java.product
  --launcher.defaultAction
  openFile
  -showsplash
  org.eclipse.platform
  --launcher.XXMaxPermSize
  1G
  --launcher.defaultAction
  openFile
  -vmargs
  -Dosgi.requiredJavaVersion=1.5
  -XstartOnFirstThread
  -Dorg.eclipse.swt.internal.carbon.smallFonts
  -Xms256m
  -Xmx512m
  -XX:PermSize=1024m
  -XX:MaxPermSize=1024M
  -Xdock:icon=../Resources/Eclipse.icns
  -XstartOnFirstThread
  -Dorg.eclipse.swt.internal.carbon.smallFonts
  </code></pre>
  
  <p>I have also tried to add "-Xmx1536m" to my VM arguments in Eclipse, but without any luck at all!</p>
  
  <p>Thanks in advance.</p>