1 Reply Latest reply on Dec 1, 2010 3:20 AM by mike just

    OutOfMemoryError: PermGen space

    mike just Master

      I have got following outofmemory error when I am deploying my application with JBoss 5.1.0. Could anybody give me an idea how to get rid of this? This problem did never happen when it was running on JBoss 4.0.3. I have increased the java memory parameter to -Xms1024m -Xmx1024m -XX:MaxPermSize=256m -Xss512k. And I have put hibernate3.jar in WEB-INF\lib. Why can not it find org.hibernate.exception.NestableDelegate?

       

      13:56:02,984 ERROR [BasicLazyInitializer] CGLIB Enhancement failed: com.globalsight.cxe.entity.filterconfiguration.JSPFilter
      net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
              at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:237)
              at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)
              at net.sf.cglib.proxy.Enhancer.createClass(Enhancer.java:317)
              at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:126)
              at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:41)
              at org.hibernate.tuple.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:161)
              at org.hibernate.tuple.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:131)
              at org.hibernate.tuple.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:55)
              at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:64)
              at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:257)
              at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:412)
              at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:108)
              at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
              at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:215)
              at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1154)
              at com.globalsight.persistence.hibernate.HibernateUtil.<clinit>(HibernateUtil.java:62)
              at com.globalsight.everest.page.PageManagerLocal.cleanupUpdatingPages(PageManagerLocal.java:805)
              at com.globalsight.everest.page.PageManagerWLRMIImpl.cleanupUpdatingPages(PageManagerWLRMIImpl.java:439)
              at com.globalsight.everest.page.PageManagerWLRMIImpl.init(PageManagerWLRMIImpl.java:82)
              at com.globalsight.everest.util.system.SystemControlTemplate.processCommand(SystemControlTemplate.java:215)
              at com.globalsight.everest.util.system.SystemControlTemplate.startup(SystemControlTemplate.java:89)
              at com.globalsight.everest.util.system.Envoy.startup(Envoy.java:170)
              at com.globalsight.everest.util.system.AmbassadorServer.startup(AmbassadorServer.java:231)
              at com.globalsight.everest.servlet.ControlServlet.<clinit>(ControlServlet.java:111)
              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:513)
              at java.lang.Class.newInstance0(Class.java:355)
              at java.lang.Class.newInstance(Class.java:308)
              at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:264)
              at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:256)
              at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1006)
              at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)
              at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4421)
              at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
              at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
              at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
              at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
              at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
              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:597)
              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 $Proxy38.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(SimpleControllerContextActio
              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:1631)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              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:163)
              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
              at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java
              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.doInstallParentFirst(DeployersImpl.java:1210)
              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:1631)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              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:702)
              at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
              at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
              at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
              at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              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.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.ja
              at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
              at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
              at org.jboss.Main.boot(Main.java:221)
              at org.jboss.Main$1.run(Main.java:556)
              at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.reflect.InvocationTargetException
              at sun.reflect.GeneratedMethodAccessor317.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:384)
              at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:219)
              ... 103 more
      Caused by: java.lang.OutOfMemoryError: PermGen space
              at java.lang.ClassLoader.defineClass1(Native Method)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
              at sun.reflect.GeneratedMethodAccessor317.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:384)
              at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:219)
              at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)
              at net.sf.cglib.proxy.Enhancer.createClass(Enhancer.java:317)
              at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:126)
              at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:41)
              at org.hibernate.tuple.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:161)
              at org.hibernate.tuple.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:131)
              at org.hibernate.tuple.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:55)
              at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:64)
              at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:257)
              at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:412)
              at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:108)
              at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
              at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:215)
              at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1154)
              at com.globalsight.persistence.hibernate.HibernateUtil.<clinit>(HibernateUtil.java:62)
              at com.globalsight.everest.page.PageManagerLocal.cleanupUpdatingPages(PageManagerLocal.java:805)
              at com.globalsight.everest.page.PageManagerWLRMIImpl.cleanupUpdatingPages(PageManagerWLRMIImpl.java:439)
              at com.globalsight.everest.page.PageManagerWLRMIImpl.init(PageManagerWLRMIImpl.java:82)
              at com.globalsight.everest.util.system.SystemControlTemplate.processCommand(SystemControlTemplate.java:215)
              at com.globalsight.everest.util.system.SystemControlTemplate.startup(SystemControlTemplate.java:89)
              at com.globalsight.everest.util.system.Envoy.startup(Envoy.java:170)
              at com.globalsight.everest.util.system.AmbassadorServer.startup(AmbassadorServer.java:231)
              at com.globalsight.everest.servlet.ControlServlet.<clinit>(ControlServlet.java:111)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      13:56:16,062 WARN  [ClassLoaderManager] Unexpected error during load of:org.hibernate.exception.NestableDelegate
      java.lang.OutOfMemoryError: PermGen space
              at java.lang.ClassLoader.defineClass1(Native Method)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
              at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:63)
              at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:572)
              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)
              at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:265)
              at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1119)
              at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:798)
              at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
              at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
              at org.hibernate.exception.NestableRuntimeException.<init>(NestableRuntimeException.java:81)
              at org.hibernate.HibernateException.<init>(HibernateException.java:22)
              at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:132)
              at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:41)
              at org.hibernate.tuple.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:161)
              at org.hibernate.tuple.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:131)
              at org.hibernate.tuple.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:55)
              at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:64)
              at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:257)
              at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:412)
              at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:108)
              at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
              at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:215)
      java.lang.NoClassDefFoundError: org/hibernate/exception/NestableDelegate
              at org.hibernate.exception.NestableRuntimeException.<init>(NestableRuntimeException.java:81)
              at org.hibernate.HibernateException.<init>(HibernateException.java:22)
              at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:132)
              at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:41)
              at org.hibernate.tuple.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:161)
              at org.hibernate.tuple.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:131)
              at org.hibernate.tuple.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:55)
              at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:64)
              at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:257)
              at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:412)
              at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:108)
              at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
              at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:215)
              at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1154)
              at com.globalsight.persistence.hibernate.HibernateUtil.<clinit>(HibernateUtil.java:62)
              at com.globalsight.everest.page.PageManagerLocal.cleanupUpdatingPages(PageManagerLocal.java:805)
              at com.globalsight.everest.page.PageManagerWLRMIImpl.cleanupUpdatingPages(PageManagerWLRMIImpl.java:439)
              at com.globalsight.everest.page.PageManagerWLRMIImpl.init(PageManagerWLRMIImpl.java:82)
              at com.globalsight.everest.util.system.SystemControlTemplate.processCommand(SystemControlTemplate.java:215)
              at com.globalsight.everest.util.system.SystemControlTemplate.startup(SystemControlTemplate.java:89)
              at com.globalsight.everest.util.system.Envoy.startup(Envoy.java:170)
              at com.globalsight.everest.util.system.AmbassadorServer.startup(AmbassadorServer.java:231)
              at com.globalsight.everest.servlet.ControlServlet.<clinit>(ControlServlet.java:111)
              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:513)
              at java.lang.Class.newInstance0(Class.java:355)
              at java.lang.Class.newInstance(Class.java:308)
              at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:264)
              at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:256)
              at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1006)
              at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)
              at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4421)
              at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
              at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
              at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
              at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
              at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
              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:597)
              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 $Proxy38.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(SimpleControllerContextActio
              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:1631)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              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:163)
              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
              at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java
              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.doInstallParentFirst(DeployersImpl.java:1210)
              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:1631)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              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:702)
              at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
              at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
              at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
              at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              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.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.ja
              at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
              at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
              at org.jboss.Main.boot(Main.java:221)
              at org.jboss.Main$1.run(Main.java:556)
              at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.ClassNotFoundException: Unexpected error during load of: org.hibernate.exception.NestableDelegate, msg=P
              at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:165)
              at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:265)
              at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1119)
              at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:798)
              at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
              at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
              ... 103 more
      Caused by: java.lang.OutOfMemoryError: PermGen space
              at java.lang.ClassLoader.defineClass1(Native Method)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
              at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:63)
              at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:572)
              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)
              at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:265)
              at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1119)
              at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:798)
              at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
              at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
              at org.hibernate.exception.NestableRuntimeException.<init>(NestableRuntimeException.java:81)
              at org.hibernate.HibernateException.<init>(HibernateException.java:22)
              at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:132)
              at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:41)
              at org.hibernate.tuple.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:161)
              at org.hibernate.tuple.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:131)
              at org.hibernate.tuple.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:55)
              at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:64)
              at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:257)
              at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:412)
              at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:108)
              at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
              at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:215)

        • 1. Re: OutOfMemoryError: PermGen space
          mike just Master

          I increased the parameter -XX:MaxPermSize to 1024M but the OOM error still occurs. I have no idea what to do now.

           

          16:12:58,171 INFO  [SettingsFactory] Default entity-mode: pojo
          16:12:58,265 INFO  [SessionFactoryImpl] building session factory
          java.lang.OutOfMemoryError: PermGen space
                  at java.lang.Throwable.getStackTraceElement(Native Method)
                  at java.lang.Throwable.getOurStackTrace(Throwable.java:591)
                  at java.lang.Throwable.printStackTrace(Throwable.java:510)
                  at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:59)
                  at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:342)
                  at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:304)
                  at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
                  at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
                  at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)
                  at org.apache.log4j.Category.callAppenders(Category.java:203)
                  at org.apache.log4j.Category.forcedLog(Category.java:388)
                  at org.apache.log4j.Category.log(Category.java:853)
                  at org.jboss.logging.log4j.Log4jLoggerPlugin.warn(Log4jLoggerPlugin.java:217)
                  at org.jboss.logging.Logger.warn(Logger.java:363)
                  at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:163)
                  at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:265)
                  at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1119)
                  at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:798)
                  at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)
                  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:2427)
                  at java.lang.Class.getDeclaredMethods(Class.java:1791)
                  at org.hibernate.property.BasicPropertyAccessor.getterMethod(BasicPropertyAccessor.java:317)
                  at org.hibernate.property.BasicPropertyAccessor.getGetterOrNull(BasicPropertyAccessor.java:297)
                  at org.hibernate.property.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:280)
                  at org.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:275)
                  at org.hibernate.tuple.PropertyFactory.getGetter(PropertyFactory.java:166)
                  at org.hibernate.tuple.PropertyFactory.buildIdentifierProperty(PropertyFactory.java:44)
                  at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:115)
                  at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:412)
          16:13:21,500 WARN  [ClassLoaderManager] Unexpected error during load of:com.globalsight.everest.page.RenderingOptions
          16:13:34,250 WARN  [ClassLoaderManager] Unexpected error during load of:org.jbpm.JbpmContext
          java.lang.OutOfMemoryError: PermGen space
                  at java.lang.ClassLoader.defineClass1(Native Method)
                  at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
                  at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:63)
                  at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:572)
                  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)
                  at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:265)
                  at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1119)
                  at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:798)
                  at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)
                  at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
                  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
                  at org.jbpm.configuration.JbpmContextInfo.createObject(JbpmContextInfo.java:143)
                  at org.jbpm.configuration.ObjectFactoryImpl.getObject(ObjectFactoryImpl.java:146)
                  at org.jbpm.configuration.ObjectFactoryImpl.createObject(ObjectFactoryImpl.java:103)
                  at org.jbpm.configuration.ObjectFactoryImpl.createObject(ObjectFactoryImpl.java:78)
                  at org.jbpm.JbpmConfiguration.createJbpmContext(JbpmConfiguration.java:343)
                  at org.jbpm.JbpmConfiguration.close(JbpmConfiguration.java:441)
                  at org.jbpm.JbpmConfiguration.close(JbpmConfiguration.java:437)
                  at com.globalsight.everest.workflow.WorkflowConfiguration.logout(WorkflowConfiguration.java:90)
                  at com.globalsight.everest.workflow.WorkflowServerLocal.shutdown(WorkflowServerLocal.java:2206)