eclipse - Spring tool suite: Tomcat server constant permgen -



eclipse - Spring tool suite: Tomcat server constant permgen -

i working spring sts. hoping webapplication on tomcat v7.0 server added using internal server wizard.

the server keeps running out of memory , throws permgen error when editing java files since server redeploying automatically (maybe? thats understanding). there way increment allocated permgen space server considering did not install own re-create of tomcat?

any help or clarification awesome.

i added stacktrace if helps:

severe: unexpected death of background thread containerbackgroundprocessor[standardengine[catalina]] java.lang.outofmemoryerror: permgen space @ java.lang.classloader.defineclass1(native method) @ java.lang.classloader.defineclass(classloader.java:800) @ java.security.secureclassloader.defineclass(secureclassloader.java:142) @ org.apache.catalina.loader.webappclassloader.findclassinternal(webappclassloader.java:2957) @ org.apache.catalina.loader.webappclassloader.findclass(webappclassloader.java:1210) @ org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1690) @ org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1571) @ org.apache.log4j.spi.loggingevent.(loggingevent.java:159) @ org.apache.log4j.category.forcedlog(category.java:391) @ org.apache.log4j.category.log(category.java:856) @ org.slf4j.impl.log4jloggeradapter.log(log4jloggeradapter.java:602) @ org.apache.commons.logging.impl.slf4jlocationawarelog.error(slf4jlocationawarelog.java:225) @ org.springframework.web.context.contextloader.initwebapplicationcontext(contextloader.java:336) @ org.springframework.web.context.contextloaderlistener.contextinitialized(contextloaderlistener.java:106) @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4992) @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5490) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) @ org.apache.catalina.core.standardcontext.reload(standardcontext.java:4007) @ org.apache.catalina.loader.webapploader.backgroundprocess(webapploader.java:425) @ org.apache.catalina.core.containerbase.backgroundprocess(containerbase.java:1345) @ org.apache.catalina.core.containerbase$containerbackgroundprocessor.processchildren(containerbase.java:1546) @ org.apache.catalina.core.containerbase$containerbackgroundprocessor.processchildren(containerbase.java:1556) @ org.apache.catalina.core.containerbase$containerbackgroundprocessor.processchildren(containerbase.java:1556) @ org.apache.catalina.core.containerbase$containerbackgroundprocessor.run(containerbase.java:1524) @ java.lang.thread.run(thread.java:745) exception in thread "containerbackgroundprocessor[standardengine[catalina]]" java.lang.outofmemoryerror: permgen space @ java.lang.classloader.defineclass1(native method) @ java.lang.classloader.defineclass(classloader.java:800) @ java.security.secureclassloader.defineclass(secureclassloader.java:142) @ org.apache.catalina.loader.webappclassloader.findclassinternal(webappclassloader.java:2957) @ org.apache.catalina.loader.webappclassloader.findclass(webappclassloader.java:1210) @ org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1690) @ org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1571) @ org.apache.log4j.spi.loggingevent.(loggingevent.java:159) @ org.apache.log4j.category.forcedlog(category.java:391) @ org.apache.log4j.category.log(category.java:856) @ org.slf4j.impl.log4jloggeradapter.log(log4jloggeradapter.java:602) @ org.apache.commons.logging.impl.slf4jlocationawarelog.error(slf4jlocationawarelog.java:225) @ org.springframework.web.context.contextloader.initwebapplicationcontext(contextloader.java:336) @ org.springframework.web.context.contextloaderlistener.contextinitialized(contextloaderlistener.java:106) @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4992) @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5490) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) @ org.apache.catalina.core.standardcontext.reload(standardcontext.java:4007) @ org.apache.catalina.loader.webapploader.backgroundprocess(webapploader.java:425) @ org.apache.catalina.core.containerbase.backgroundprocess(containerbase.java:1345) @ org.apache.catalina.core.containerbase$containerbackgroundprocessor.processchildren(containerbase.java:1546) @ org.apache.catalina.core.containerbase$containerbackgroundprocessor.processchildren(containerbase.java:1556) @ org.apache.catalina.core.containerbase$containerbackgroundprocessor.processchildren(containerbase.java:1556) @ org.apache.catalina.core.containerbase$containerbackgroundprocessor.run(containerbase.java:1524) @ java.lang.thread.run(thread.java:745)

thank :)

indeed can increment permgen space, @ to the lowest degree postpone outofmemoryerror: permgen space. simple adding (or increasing if present) parameter similar next illustration allocating 512m permgen space:

java -xx:maxpermsize=512m your.package.yourclass

based on description though believe application contains classloader leak, happening during redeploy. if belief correct, increasing permgen space postpones inevitable instead of solving underlying problem. solve problem, can either heap dump , analyze content or utilize specialized tools, such plumbr memory leak detector.

full disclosure, affiliated plumbr.

eclipse spring-mvc spring-tool-suite

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -