3 Replies Latest reply on Apr 9, 2009 11:00 AM by Peter Johnson

    JBOSS 5.0 GA: Out of Memory Problem

    Muthukumaran Manickavasagam Newbie

      I'm trying to port my application to 5.0 GA version and when the JBOSS tomcat server deployes my application the JBOSS just exits with "Out of Memory" like below. Posting this here to get some direction from this group

      16:55:14,610 WARN [ClassLoaderManager] Unexpected error during load of:javax.naming.Name

      java.lang.OutOfMemoryError

      at java.util.zip.Inflater.init(Native Method)

      at java.util.zip.Inflater.(Inflater.java:75)

      at java.util.zip.ZipFile.getInflater(ZipFile.java:375)

      at java.util.zip.ZipFile.getInputStream(ZipFile.java:320)

      at java.util.zip.ZipFile.getInputStream(ZipFile.java:286)

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

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

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

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

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

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

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

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

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

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

      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:254)

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

      at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:256)

      at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1099)

      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:735)

      at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:378)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

      at java.lang.Class.getDeclaredMethods0(Native Method)

      at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)

      at java.lang.Class.getDeclaredMethod(Class.java:1907)

      at java.io.ObjectStreamClass.getPrivateMethod(ObjectStreamClass.java:1354)

      at java.io.ObjectStreamClass.access$1700(ObjectStreamClass.java:52)

      at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:421)

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

      at java.io.ObjectStreamClass.(ObjectStreamClass.java:400)

      at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:297)

      at java.io.ObjectStreamClass.initProxy(ObjectStreamClass.java:491)

      at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1508)

      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1463)

      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)

      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)

      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)

      at java.rmi.MarshalledObject.get(MarshalledObject.java:135)

      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:290)

      at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1622)

      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1713)

      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:680)

      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:673)

      at javax.naming.InitialContext.lookup(InitialContext.java:351)

      at org.jboss.web.tomcat.service.deployers.JBossContextConfig.getAuthenticatorsFromJndi(JBossContextConfig.java:483)

      at org.jboss.web.tomcat.service.deployers.JBossContextConfig.getAuthenticators(JBossContextConfig.java:455)

      at org.jboss.web.tomcat.service.deployers.JBossContextConfig.(JBossContextConfig.java:113)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

      at java.lang.reflect.Constructor.newInstance(Constructor.java:494)

      at java.lang.Class.newInstance0(Class.java:350)

      at java.lang.Class.newInstance(Class.java:303)

      at org.apache.catalina.core.StandardContext.init(StandardContext.java:5408)

      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4148)

      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367)

      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)

      at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)

      at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)

      at org.jboss.web.deployers.WebModule.start(WebModule.java:96)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:585)

      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

      at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

      at $Proxy36.start(Unknown Source)

      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)

      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)

      at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

      at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

      at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

      at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)

      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)

      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

      at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

      at org.jboss.system.ServiceController.start(ServiceController.java:460)

      at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)

      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)

      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)

      at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)

      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)

      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)

      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)

      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)

      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)

      at org.jboss.Main.boot(Main.java:209)

      at org.jboss.Main$1.run(Main.java:547)

      at java.lang.Thread.run(Thread.java:595)

      JDWP exit error JVMTI_ERROR_OUT_OF_MEMORY(110): loaded classesFATAL ERROR in native method: JDWP loaded classes, jvmtiError=JVMTI_ERROR_OUT_OF_MEM

      at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:182)

      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:165)

      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

      at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

      at $Proxy36.start(Unknown Source)

      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)

      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)

      at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

      at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

      at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

      at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)

      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)

      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

      at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

      at org.jboss.system.ServiceController.start(ServiceController.java:460)

      at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)

      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)

      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)

      at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)

      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)

      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)

      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)

      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)

      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)