12 Replies Latest reply: Aug 11, 2011 9:19 PM by Anil Mathew RSS

Out of Memory Error with Jboss 5.1.0

Anil Mathew Newbie

Hi,

 

   We have been testing Jboss 5.1 for the last 6 months and as a final test before the production we are doing some load testing. During our load test we are getting OutOfMemoryError and finally Jboss will crash. Below is error we are getting:

 

Caused by: java.lang.OutOfMemoryError

        at java.util.zip.ZipFile.open(Native Method)

        at java.util.zip.ZipFile.<init>(ZipFile.java:114)

        at java.util.zip.ZipFile.<init>(ZipFile.java:131)

        at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.ensureZipFile(ZipFileWrapper.java:175)

        at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.openStream(ZipFileWrapper.java:213)

        at org.jboss.virtual.plugins.context.zip.ZipEntryContext.openStream(ZipEntryContext.java:1082)

        at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.openStream(ZipEntryHandler.java:153)

        at org.jboss.virtual.VirtualFile.openStream(VirtualFile.java:230)

        at org.jboss.classloading.spi.vfs.policy.VFSClassLoaderPolicy.getResourceAsStream(VFSClassLoaderPolicy.java:483)

        at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:534)

        at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:532)

        at java.security.AccessController.doPrivileged(Native Method)

        at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:530)

        at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:507)

        at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:134)

        at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:131)

        at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:452)

        at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:251)

        at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:150)

 

     We are running the load test in a clustered environment with 3 app servers in one cluster (and with 4 web servers). Our environment is Linux with 4GB Memory and with JDK 1.6.05

    

    The JAVA_OPTS settings are:

 

  JAVA_OPTS="-server -verbose:gc -Xms920M -Xmx1850M"

  JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=128M"

 

     I read many conversations in this forum regarding out of memory error. One of the main posting  which matched the above error was http://community.jboss.org/thread/160201?start=15&tstart=0   (https://issues.jboss.org/browse/JBVFS-134). Can you please whether is a real bug in JBoss 5.1? Also does this already fixed in JBoss 5.1? We are all set to upgrade the production environment with JBoss 5.1 in another 2 weeks and we basically stumped now after seeing these errors during our load testing. Please help.

 

Thanks

Anil Mathew