OutofMemoryError in WAS 6
--------------------------------
Hi All,
I've an application where I generate a report and export it to excel. The list is quite huge and contains more than 8000 records. But while generating the report I'm getting the below mentioned error. Can anybody please help me with this.
Uncaught exception thrown in one of the service methods of the servlet: Exception thrown : java.lang.OutOfMemoryError
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:203)
at java.util.zip.ZipFile.(ZipFile.java:234)
at com.ibm.ws.classloader.SinglePathClassProvider$2.run(SinglePathClassProvider.java:242)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:63)
at com.ibm.ws.classloader.SinglePathClassProvider.getClassBytesFromJar(SinglePathClassProvider.java:233)
at com.ibm.ws.classloader.SinglePathClassProvider.getClassBytes(SinglePathClassProvider.java:178)
at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:457)
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:389)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
Note: My server heap size is, Initial: 128mb Maximum: 512mb, WAS version 6.1.0.15 , SunOS, version 5.9, Java version = 1.5.0_13
1. Is the volume of records causing this OutOfMemoryError? If so, then I have another report too where I get around 9000 records, but I don't get OutofMemoryError!
2. Is there any other alternative than increasing the heap size?
--------------------------------
Posted By: sunilkb at Jul 16 2009 4:12PM