java - JBoss 6.1 + PermGen space -
i have deployed jboss 6.1 on solaris , working fine. did ftp , telnet , direct root login disabled. after i'm getting permgen space error.
what might reason error? please help.
error:
12:21:30,873 error [abstractkernelcontroller] error installing postclassloader: name=vfs:///usr05/ccapp/app/jboss-6.1.0/server/srs/deploy/srsear.ear state=classloader mode=manual requiredstate=postclassloader: org.jboss.deployers.spi.deploymentexception: error during deploy: vfs:///usr05/ccapp/app/jboss-6.1.0/server/srs/deploy/srsear.ear @ org.jboss.deployers.spi.deploymentexception.rethrowasdeploymentexception(deploymentexception.java:49) [:2.2.2.ga] @ org.jboss.deployers.plugins.deployers.deployerwrapper.deploy(deployerwrapper.java:185) [:2.2.2.ga] @ org.jboss.deployers.plugins.deployers.deployersimpl.dodeploy(deployersimpl.java:1832) [:2.2.2.ga] @ org.jboss.deployers.plugins.deployers.deployersimpl.doinstallparentfirst(deployersimpl.java:1550) [:2.2.2.ga] @ org.jboss.deployers.plugins.deployers.deployersimpl.install(deployersimpl.java:1491) [:2.2.2.ga] @ org.jboss.dependency.plugins.abstractcontrollercontext.install(abstractcontrollercontext.java:379) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.install(abstractcontroller.java:2044) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.incrementstate(abstractcontroller.java:1083) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.executeorincrementstatedirectly(abstractcontroller.java:1322) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.resolvecontexts(abstractcontroller.java:1246) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.resolvecontexts(abstractcontroller.java:1139) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.change(abstractcontroller.java:939) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.change(abstractcontroller.java:654) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.deployers.plugins.deployers.deployersimpl.change(deployersimpl.java:1983) [:2.2.2.ga] @ org.jboss.deployers.plugins.deployers.deployersimpl.process(deployersimpl.java:1076) [:2.2.2.ga] @ org.jboss.deployers.plugins.main.maindeployerimpl.process(maindeployerimpl.java:679) [:2.2.2.ga] @ org.jboss.system.server.profileservice.deployers.maindeployerplugin.process(maindeployerplugin.java:106) [:6.1.0.final] @ org.jboss.profileservice.dependency.profilecontrollercontext$delegatedeployer.process(profilecontrollercontext.java:143) [:0.2.2] @ org.jboss.profileservice.dependency.profiledeployaction.deploy(profiledeployaction.java:151) [:0.2.2] @ org.jboss.profileservice.dependency.profiledeployaction.installactioninternal(profiledeployaction.java:94) [:0.2.2] @ org.jboss.kernel.plugins.dependency.installsawareaction.installaction(installsawareaction.java:54) [jboss-kernel.jar:2.2.0.sp2] @ org.jboss.kernel.plugins.dependency.installsawareaction.installaction(installsawareaction.java:42) [jboss-kernel.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.action.simplecontrollercontextaction.simpleinstallaction(simplecontrollercontextaction.java:62) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.action.accesscontrollercontextaction.install(accesscontrollercontextaction.java:71) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontrollercontextactions.install(abstractcontrollercontextactions.java:51) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontrollercontext.install(abstractcontrollercontext.java:379) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.install(abstractcontroller.java:2044) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.incrementstate(abstractcontroller.java:1083) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.executeorincrementstatedirectly(abstractcontroller.java:1322) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.resolvecontexts(abstractcontroller.java:1246) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.resolvecontexts(abstractcontroller.java:1139) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.change(abstractcontroller.java:939) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.change(abstractcontroller.java:654) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.profileservice.dependency.profileactivationwrapper$basicprofileactivation.start(profileactivationwrapper.java:190) [:0.2.2] @ org.jboss.profileservice.dependency.profileactivationwrapper.start(profileactivationwrapper.java:87) [:0.2.2] @ org.jboss.profileservice.dependency.profileactivationservice.activateprofile(profileactivationservice.java:215) [:0.2.2] @ org.jboss.profileservice.dependency.profileactivationservice.activate(profileactivationservice.java:159) [:0.2.2] @ org.jboss.profileservice.bootstrap.abstractprofileservicebootstrap.activate(abstractprofileservicebootstrap.java:112) [:0.2.2] @ org.jboss.profileservice.resolver.basicresolverfactory$profileresolverfacade.deploy(basicresolverfactory.java:87) [:0.2.2] @ org.jboss.profileservice.bootstrap.abstractprofileservicebootstrap.start(abstractprofileservicebootstrap.java:91) [:0.2.2] @ org.jboss.system.server.profileservice.bootstrap.basicprofileservicebootstrap.start(basicprofileservicebootstrap.java:132) [:6.1.0.final] @ org.jboss.system.server.profileservice.bootstrap.basicprofileservicebootstrap.start(basicprofileservicebootstrap.java:56) [:6.1.0.final] @ org.jboss.bootstrap.impl.base.server.abstractserver.startbootstraps(abstractserver.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-6] @ org.jboss.bootstrap.impl.base.server.abstractserver$startservertask.run(abstractserver.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-6] @ java.lang.thread.run(thread.java:662) [:1.6.0_45] caused by: java.lang.outofmemoryerror: permgen space 12:22:02,285 warn [classloadermanager] unexpected error during load of:org.jboss.ejb.container: java.lang.outofmemoryerror: permgen space 12:22:02,287 error [basicmbeanregistry] cannot register mbean: java.lang.noclassdeffounderror: org/jboss/ejb/container @ java.lang.class.getdeclaredmethods0(native method) [:1.6.0_45] @ java.lang.class.privategetdeclaredmethods(class.java:2436) [:1.6.0_45] @ java.lang.class.privategetpublicmethods(class.java:2556) [:1.6.0_45] @ java.lang.class.privategetpublicmethods(class.java:2566) [:1.6.0_45] @ java.lang.class.getmethods(class.java:1412) [:1.6.0_45] @ org.jboss.mx.metadata.standardmetadata.build(standardmetadata.java:224) [:6.0.0.ga] @ org.jboss.mx.modelmbean.xmbean.<init>(xmbean.java:229) [:6.0.0.ga] @ org.jboss.mx.server.registry.basicmbeanregistry.registermbean(basicmbeanregistry.java:205) [:6.0.0.ga] @ sun.reflect.generatedmethodaccessor58.invoke(unknown source) [:1.6.0_45] @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) [:1.6.0_45] @ java.lang.reflect.method.invoke(method.java:597) [:1.6.0_45] @ org.jboss.mx.interceptor.reflecteddispatcher.invoke(reflecteddispatcher.java:157) [:6.0.0.ga] @ org.jboss.mx.server.invocation.dispatch(invocation.java:96) [:6.0.0.ga] @ org.jboss.mx.interceptor.abstractinterceptor.invoke(abstractinterceptor.java:138) [:6.0.0.ga] @ org.jboss.mx.server.invocation.invoke(invocation.java:90) [:6.0.0.ga] @ org.jboss.mx.interceptor.modelmbeanoperationinterceptor.invoke(modelmbeanoperationinterceptor.java:140) [:6.0.0.ga] @ org.jboss.mx.server.invocation.invoke(invocation.java:90) [:6.0.0.ga] @ org.jboss.mx.server.abstractmbeaninvoker.invoke(abstractmbeaninvoker.java:271) [:6.0.0.ga] @ org.jboss.mx.server.mbeanserverimpl.invoke(mbeanserverimpl.java:670) [:6.0.0.ga] @ org.jboss.system.servicecreator.installplainmbean(servicecreator.java:233) [:6.1.0.final (build svntag:jboss_6.1.0.final date: 20110816)] @ org.jboss.system.servicecreator.install(servicecreator.java:133) [:6.1.0.final (build svntag:jboss_6.1.0.final date: 20110816)] @ org.jboss.system.microcontainer.instantiateaction.installaction(instantiateaction.java:73) [:2.2.0.sp2] @ org.jboss.system.microcontainer.instantiateaction.installaction(instantiateaction.java:46) [:2.2.0.sp2] @ org.jboss.dependency.plugins.action.simplecontrollercontextaction.simpleinstallaction(simplecontrollercontextaction.java:62) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.action.accesscontrollercontextaction.install(accesscontrollercontextaction.java:71) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontrollercontextactions.install(abstractcontrollercontextactions.java:51) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontrollercontext.install(abstractcontrollercontext.java:379) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.system.microcontainer.servicecontrollercontext.install(servicecontrollercontext.java:301) [:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.install(abstractcontroller.java:2044) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.incrementstate(abstractcontroller.java:1083) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.executeorincrementstatedirectly(abstractcontroller.java:1322) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.resolvecontexts(abstractcontroller.java:1246) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.resolvecontexts(abstractcontroller.java:1139) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.change(abstractcontroller.java:939) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.change(abstractcontroller.java:654) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.system.servicecontroller.dochange(servicecontroller.java:671) [:6.1.0.final (build svntag:jboss_6.1.0.final date: 20110816)] @ org.jboss.system.servicecontroller.install(servicecontroller.java:257) [:6.1.0.final (build svntag:jboss_6.1.0.final date: 20110816)] @ org.jboss.system.deployers.servicedeployer.deploy(servicedeployer.java:93) [:6.1.0.final] @ org.jboss.system.deployers.servicedeployer.deploy(servicedeployer.java:49) [:6.1.0.final] @ org.jboss.deployers.spi.deployer.helpers.abstractsimplerealdeployer.internaldeploy(abstractsimplerealdeployer.java:63) [:2.2.2.ga] @ org.jboss.deployers.spi.deployer.helpers.abstractrealdeployer.deploy(abstractrealdeployer.java:55) [:2.2.2.ga] @ org.jboss.deployers.plugins.deployers.deployerwrapper.deploy(deployerwrapper.java:179) [:2.2.2.ga] @ org.jboss.deployers.plugins.deployers.deployersimpl.dodeploy(deployersimpl.java:1832) [:2.2.2.ga] @ org.jboss.deployers.plugins.deployers.deployersimpl.doinstallparentfirst(deployersimpl.java:1550) [:2.2.2.ga] @ org.jboss.deployers.plugins.deployers.deployersimpl.doinstallparentfirst(deployersimpl.java:1571) [:2.2.2.ga] @ org.jboss.deployers.plugins.deployers.deployersimpl.install(deployersimpl.java:1491) [:2.2.2.ga] @ org.jboss.dependency.plugins.abstractcontrollercontext.install(abstractcontrollercontext.java:379) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.install(abstractcontroller.java:2044) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.incrementstate(abstractcontroller.java:1083) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.executeorincrementstatedirectly(abstractcontroller.java:1322) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.resolvecontexts(abstractcontroller.java:1246) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.resolvecontexts(abstractcontroller.java:1139) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.change(abstractcontroller.java:939) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.change(abstractcontroller.java:654) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.deployers.plugins.deployers.deployersimpl.change(deployersimpl.java:1983) [:2.2.2.ga] @ org.jboss.deployers.plugins.deployers.deployersimpl.process(deployersimpl.java:1076) [:2.2.2.ga] @ org.jboss.deployers.plugins.main.maindeployerimpl.process(maindeployerimpl.java:679) [:2.2.2.ga] @ org.jboss.system.server.profileservice.deployers.maindeployerplugin.process(maindeployerplugin.java:106) [:6.1.0.final] @ org.jboss.profileservice.dependency.profilecontrollercontext$delegatedeployer.process(profilecontrollercontext.java:143) [:0.2.2] @ org.jboss.profileservice.dependency.profiledeployaction.deploy(profiledeployaction.java:151) [:0.2.2] @ org.jboss.profileservice.dependency.profiledeployaction.installactioninternal(profiledeployaction.java:94) [:0.2.2] @ org.jboss.kernel.plugins.dependency.installsawareaction.installaction(installsawareaction.java:54) [jboss-kernel.jar:2.2.0.sp2] @ org.jboss.kernel.plugins.dependency.installsawareaction.installaction(installsawareaction.java:42) [jboss-kernel.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.action.simplecontrollercontextaction.simpleinstallaction(simplecontrollercontextaction.java:62) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.action.accesscontrollercontextaction.install(accesscontrollercontextaction.java:71) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontrollercontextactions.install(abstractcontrollercontextactions.java:51) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontrollercontext.install(abstractcontrollercontext.java:379) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.install(abstractcontroller.java:2044) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.incrementstate(abstractcontroller.java:1083) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.executeorincrementstatedirectly(abstractcontroller.java:1322) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.resolvecontexts(abstractcontroller.java:1246) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.resolvecontexts(abstractcontroller.java:1139) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.change(abstractcontroller.java:939) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.dependency.plugins.abstractcontroller.change(abstractcontroller.java:654) [jboss-dependency.jar:2.2.0.sp2] @ org.jboss.profileservice.dependency.profileactivationwrapper$basicprofileactivation.start(profileactivationwrapper.java:190) [:0.2.2] @ org.jboss.profileservice.dependency.profileactivationwrapper.start(profileactivationwrapper.java:87) [:0.2.2] @ org.jboss.profileservice.dependency.profileactivationservice.activateprofile(profileactivationservice.java:215) [:0.2.2] @ org.jboss.profileservice.dependency.profileactivationservice.activate(profileactivationservice.java:159) [:0.2.2] @ org.jboss.profileservice.bootstrap.abstractprofileservicebootstrap.activate(abstractprofileservicebootstrap.java:112) [:0.2.2] @ org.jboss.profileservice.resolver.basicresolverfactory$profileresolverfacade.deploy(basicresolverfactory.java:87) [:0.2.2] @ org.jboss.profileservice.bootstrap.abstractprofileservicebootstrap.start(abstractprofileservicebootstrap.java:91) [:0.2.2] @ org.jboss.system.server.profileservice.bootstrap.basicprofileservicebootstrap.start(basicprofileservicebootstrap.java:132) [:6.1.0.final] @ org.jboss.system.server.profileservice.bootstrap.basicprofileservicebootstrap.start(basicprofileservicebootstrap.java:56) [:6.1.0.final] @ org.jboss.bootstrap.impl.base.server.abstractserver.startbootstraps(abstractserver.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-6] @ org.jboss.bootstrap.impl.base.server.abstractserver$startservertask.run(abstractserver.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-6] @ java.lang.thread.run(thread.java:662) [:1.6.0_45] caused by: java.lang.classnotfoundexception: unexpected error during load of: org.jboss.ejb.container, msg=permgen space @ org.jboss.classloader.spi.base.classloadermanager.process(classloadermanager.java:176) [jboss-classloader.jar:2.2.1.ga] @ org.jboss.classloader.spi.base.baseclassloaderdomain.loadclass(baseclassloaderdomain.java:280) [jboss-classloader.jar:2.2.1.ga] @ org.jboss.classloader.spi.base.baseclassloaderdomain.loadclass(baseclassloaderdomain.java:1172) [jboss-classloader.jar:2.2.1.ga] @ org.jboss.classloader.spi.base.baseclassloader.loadclassfromdomain(baseclassloader.java:886) [jboss-classloader.jar:2.2.1.ga] @ org.jboss.classloader.spi.base.baseclassloader.doloadclass(baseclassloader.java:505) [jboss-classloader.jar:2.2.1.ga] @ org.jboss.classloader.spi.base.baseclassloader.loadclass(baseclassloader.java:450) [jboss-classloader.jar:2.2.1.ga] @ java.lang.classloader.loadclass(classloader.java:247) [:1.6.0_45] ... 86 more caused by: java.lang.outofmemoryerror: permgen space
if working around big enterprise application, may face memory issues in jboss. in order solve need increase jvm permsize jboss. lets see steps increase jboss permsize.
note: tested settings under jboss-as-7.1.1.final
windows
- edit
bin\standalone.conf.bat
change maxpermsize per requirement , save file:
set "java_opts=-xms64m -xmx512m -xx:maxpermsize=256m"
restart jboss.
linux
- edit
bin/standalone.conf
change maxpermsize per requirement , save file.
java_opts="-xms64m -xmx512m -xx:maxpermsize=256m -djava.net.preferipv4stack=true -dorg.jboss.resolver.warning=true -dsun.rmi.dgc.client.gcinterval=3600000 -dsun.rmi.dgc.server.gcinterval=3600000"
restart jboss
Comments
Post a Comment