title: Eclipse Exception with java.lang.OutOfMemoryError: Java heap space
body: <p>Hi I am partially testing an application and It has a problem with heap space.
  Here is sample code</p>
  
  <pre><code>public class Test {
  
  
  Test()
  {
      byte[] b = new byte[744678306];
  }
  
  
  public static void main(String[] args) {
      // TODO Auto-generated method stub
      Test t=new Test();
  }
  
  }
  </code></pre>
  
  <p>Error</p>
  
  <pre><code>Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
  </code></pre>
  
  <p>Here is eclipse ini configuration </p>
  
  <pre><code>-startup
  plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
  --launcher.library
  plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20130807-1835
  -product
  org.eclipse.epp.package.jee.product
  --launcher.defaultAction
  openFile
  -showsplash
  org.eclipse.platform
  --launcher.XXMaxPermSize
  256m
  --launcher.defaultAction
  openFile
  --launcher.appendVmargs
  -vmargs
  -Dosgi.requiredJavaVersion=1.6
  -XX:MaxPermSize=256m
  -Xms800m
  -Xmx999m
  </code></pre>
  
  <p>Working env : ubuntu 12 on vBox.</p>
  
  <p>Thanks advance.</p>