Hi I am partially testing an application and It has a problem with heap space. Here is sample 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();
}
}
Error
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
Here is eclipse ini configuration
-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
Working env : ubuntu 12 on vBox.
Thanks advance.