PermGen

Boa tarde galera,

Sei que este assunto já é antigo por aqui e existem vários tutoriais no Google, mas acontece que tentei várias vezes fazer esta alteração em nosso servidor de aplicação onde está rotando o Tomcat6, já vasculhei o servidor atrás do catalina.bat porém sem êxito aí estou usando a seguinte linha onde executo no CMD de dentro do diretório do Apache/bin:
tomcat6 //US//Tomcat6 --JvmMx 1024 ++JvmOptions="-XX:MaxPermSize=256m"

Nosso servidor está rodando Windows Server 2008 64 Bits com 8 Gb de RAM

A Alteração é feita, porém o Apache não dá mais start. Alguém pode me ajudar?
Desde já agradeço.
Att.
Diego Silva

Você consegue colar o log do Tomcat (catalina.out)? Ele deve estar reclamando de algo lá.

Opa, onde fica o catalina.out? Encontrei somente o catalina.2016-09-20 e eh gigantesco.

Obrigado por responder.

Normalmente existe um arquivo catalina.out que é o log de execuções da data atual. Se não houver não tem problema. Pega esse log, move para outro lugar deixa a pasta de logs do Tomcat vazia, que ele irá gerar outro arquivo assim que iniciar. Ai você pega o arquivo gerado e cola as linhas aqui.

Faço a alteração do tamanho da memória do TOMCAT antes?

Faz, deixa o tomcat do jeito que dá erro.

Set 20, 2016 3:17:27 PM org.apache.catalina.core.AprLifecycleListener init
Informações: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Apache\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;;.
Set 20, 2016 3:17:27 PM org.apache.coyote.http11.Http11Protocol init
Informações: Initializing Coyote HTTP/1.1 on http-8080
Set 20, 2016 3:17:27 PM org.apache.catalina.startup.Catalina load
Informações: Initialization processed in 1188 ms
Set 20, 2016 3:17:27 PM org.apache.catalina.core.StandardService start
Informações: Starting service Catalina
Set 20, 2016 3:17:27 PM org.apache.catalina.core.StandardEngine start
Informações: Starting Servlet Engine: Apache Tomcat/6.0.37
Set 20, 2016 3:17:27 PM org.apache.catalina.startup.HostConfig deployDescriptor
Informações: Deploying configuration descriptor manager.xml
Set 20, 2016 3:17:28 PM org.apache.catalina.startup.HostConfig deployWAR

Só tem isso? A impressão que eu tenho é que o tomcat ainda não tinha terminado de subir. Você consegue ver se teve mais alguma alteração no arquivo, e se tiver colar ela aqui?

Sim… Faltou um pedação…

Está aí… eu só precisei voltar a configuração, pois senão os clientes reclamam.

Set 20, 2016 3:17:27 PM org.apache.catalina.core.AprLifecycleListener init
Informações: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Apache\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;;.
Set 20, 2016 3:17:27 PM org.apache.coyote.http11.Http11Protocol init
Informações: Initializing Coyote HTTP/1.1 on http-8080
Set 20, 2016 3:17:27 PM org.apache.catalina.startup.Catalina load
Informações: Initialization processed in 1188 ms
Set 20, 2016 3:17:27 PM org.apache.catalina.core.StandardService start
Informações: Starting service Catalina
Set 20, 2016 3:17:27 PM org.apache.catalina.core.StandardEngine start
Informações: Starting Servlet Engine: Apache Tomcat/6.0.37
Set 20, 2016 3:17:27 PM org.apache.catalina.startup.HostConfig deployDescriptor
Informações: Deploying configuration descriptor manager.xml
Set 20, 2016 3:17:28 PM org.apache.catalina.startup.HostConfig deployWAR
Informações: Deploying web application archive IntegracaoPositron.war
Set 20, 2016 3:17:29 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
Informações: validateJarFile(C:\Program Files\Apache\webapps\IntegracaoPositron\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Set 20, 2016 3:17:30 PM org.apache.catalina.core.StandardContext addApplicationListener
Informações: The listener “org.apache.myfaces.webapp.StartupServletContextListener” is already configured for this context. The duplicate definition has been ignored.
Set 20, 2016 3:17:32 PM org.apache.catalina.core.StandardContext start
Grave: Error filterStart
Set 20, 2016 3:17:32 PM org.apache.catalina.core.StandardContext start
Grave: Context [/IntegracaoPositron] startup failed due to previous errors
Set 20, 2016 3:17:32 PM org.apache.catalina.core.StandardContext start
Grave: Exception during cleanup after start failed
java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.findBootstrapClass(Native Method)
at java.lang.ClassLoader.findBootstrapClassOrNull(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.catalina.loader.WebappClassLoader.clearReferencesRmiTargets(WebappClassLoader.java:2581)
at org.apache.catalina.loader.WebappClassLoader.clearReferences(WebappClassLoader.java:1924)
at org.apache.catalina.loader.WebappClassLoader.stop(WebappClassLoader.java:1833)
at org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java:740)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4920)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4750)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Set 20, 2016 3:17:32 PM org.apache.catalina.startup.HostConfig deployWAR
Informações: Deploying web application archive topPolitico.war
Set 20, 2016 3:17:32 PM org.apache.tomcat.util.modeler.Registry registerComponent
Grave: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/topPolitico,J2EEApplication=none,J2EEServer=none
Set 20, 2016 3:17:32 PM org.apache.catalina.startup.HostConfig deployWAR
Grave: Error deploying web application archive topPolitico.war
java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2854)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
at org.apache.catalina.startup.WebAnnotationSet.loadClassAnnotation(WebAnnotationSet.java:145)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationListenerAnnotations(WebAnnotationSet.java:73)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:56)
at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:297)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1078)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4612)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Set 20, 2016 3:17:32 PM org.apache.catalina.startup.HostConfig deployDirectory
Informações: Deploying web application directory assinaturas
Set 20, 2016 3:17:33 PM org.apache.tomcat.util.digester.Digester endElement
Grave: End event threw error
java.lang.OutOfMemoryError: PermGen space

Set 20, 2016 3:17:33 PM org.apache.catalina.startup.HostConfig deployDirectory
Grave: Error deploying web application directory assinaturas
java.lang.OutOfMemoryError: PermGen space

Set 20, 2016 3:17:33 PM org.apache.catalina.startup.HostConfig deployDirectory
Informações: Deploying web application directory cadEmpresas
Set 20, 2016 3:17:34 PM org.apache.tomcat.util.digester.Digester endElement
Grave: End event threw error
java.lang.OutOfMemoryError: PermGen space

Set 20, 2016 3:17:34 PM org.apache.catalina.startup.HostConfig deployDirectory
Grave: Error deploying web application directory cadEmpresas
java.lang.OutOfMemoryError: PermGen space

Set 20, 2016 3:17:34 PM org.apache.catalina.startup.HostConfig deployDirectory
Informações: Deploying web application directory docs
Set 20, 2016 3:17:34 PM org.apache.tomcat.util.digester.Digester endElement
Grave: End event threw error
java.lang.OutOfMemoryError: PermGen space

Set 20, 2016 3:17:34 PM org.apache.catalina.startup.HostConfig deployDirectory
Grave: Error deploying web application directory docs
java.lang.OutOfMemoryError: PermGen space

Set 20, 2016 3:17:34 PM org.apache.catalina.startup.HostConfig deployDirectory
Informações: Deploying web application directory monisat
Set 20, 2016 3:17:34 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
Informações: validateJarFile(C:\Program Files\Apache\webapps\monisat\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Set 20, 2016 3:17:34 PM org.apache.tomcat.util.digester.Digester endElement
Grave: End event threw error
java.lang.OutOfMemoryError: PermGen space

Set 20, 2016 3:17:35 PM org.apache.catalina.startup.HostConfig deployDirectory
Grave: Error deploying web application directory monisat
java.lang.OutOfMemoryError: PermGen space

Set 20, 2016 3:17:35 PM org.apache.catalina.startup.HostConfig deployDirectory
Informações: Deploying web application directory ROOT
Set 20, 2016 3:17:35 PM org.apache.tomcat.util.digester.Digester endElement
Grave: End event threw error
java.lang.OutOfMemoryError: PermGen space

Set 20, 2016 3:17:35 PM org.apache.catalina.startup.HostConfig deployDirectory
Grave: Error deploying web application directory ROOT
java.lang.OutOfMemoryError: PermGen space

Set 20, 2016 3:17:35 PM org.apache.catalina.startup.HostConfig deployDirectory
Informações: Deploying web application directory seguradora
Set 20, 2016 3:17:35 PM org.apache.tomcat.util.digester.Digester endElement
Grave: End event threw error
java.lang.OutOfMemoryError: PermGen space

Set 20, 2016 3:17:35 PM org.apache.catalina.startup.HostConfig deployDirectory
Grave: Error deploying web application directory seguradora
java.lang.OutOfMemoryError: PermGen space

Set 20, 2016 3:17:35 PM org.apache.catalina.startup.HostConfig deployDirectory
Informações: Deploying web application directory site
Set 20, 2016 3:17:35 PM org.apache.tomcat.util.digester.Digester endElement
Grave: End event threw error
java.lang.OutOfMemoryError: PermGen space

Set 20, 2016 3:17:36 PM org.apache.catalina.startup.HostConfig deployDirectory
Grave: Error deploying web application directory site
java.lang.OutOfMemoryError: PermGen space

Set 20, 2016 3:17:36 PM org.apache.catalina.startup.HostConfig deployDirectory
Informações: Deploying web application directory SiteTutoriais
Set 20, 2016 3:17:36 PM org.apache.tomcat.util.digester.Digester endElement
Grave: End event threw error
java.lang.OutOfMemoryError: PermGen space

Set 20, 2016 3:17:36 PM org.apache.catalina.startup.HostConfig deployDirectory
Grave: Error deploying web application directory SiteTutoriais
java.lang.OutOfMemoryError: PermGen space

Set 20, 2016 3:19:00 PM org.apache.catalina.core.AprLifecycleListener init
Informações: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Apache\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;;.
Set 20, 2016 3:19:01 PM org.apache.coyote.http11.Http11Protocol init
Informações: Initializing Coyote HTTP/1.1 on http-8080
Set 20, 2016 3:19:01 PM org.apache.catalina.startup.Catalina load
Informações: Initialization processed in 1108 ms
Set 20, 2016 3:19:01 PM org.apache.catalina.core.StandardService start
Informações: Starting service Catalina
Set 20, 2016 3:19:01 PM org.apache.catalina.core.StandardEngine start
Informações: Starting Servlet Engine: Apache Tomcat/6.0.37
Set 20, 2016 3:19:01 PM org.apache.catalina.startup.HostConfig deployDescriptor
Informações: Deploying configuration descriptor manager.xml
Set 20, 2016 3:19:01 PM org.apache.catalina.startup.HostConfig deployWAR
Informações: Deploying web application archive IntegracaoPositron.war
Set 20, 2016 3:19:02 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
Informações: validateJarFile(C:\Program Files\Apache\webapps\IntegracaoPositron\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Set 20, 2016 3:19:03 PM org.apache.catalina.core.StandardContext addApplicationListener
Informações: The listener “org.apache.myfaces.webapp.StartupServletContextListener” is already configured for this context. The duplicate definition has been ignored.
Set 20, 2016 3:19:05 PM org.apache.catalina.startup.HostConfig deployWAR
Informações: Deploying web application archive topPolitico.war
Set 20, 2016 3:19:05 PM org.apache.catalina.core.StandardContext addApplicationListener
Informações: The listener “org.apache.myfaces.webapp.StartupServletContextListener” is already configured for this context. The duplicate definition has been ignored.
Set 20, 2016 3:19:08 PM org.apache.catalina.startup.HostConfig deployDirectory
Informações: Deploying web application directory assinaturas
Set 20, 2016 3:19:08 PM org.apache.catalina.startup.HostConfig deployDirectory
Informações: Deploying web application directory cadEmpresas
Set 20, 2016 3:19:09 PM org.apache.catalina.core.StandardContext addApplicationListener
Informações: The listener “org.apache.myfaces.webapp.StartupServletContextListener” is already configured for this context. The duplicate definition has been ignored.
Set 20, 2016 3:19:11 PM org.apache.catalina.startup.HostConfig deployDirectory
Informações: Deploying web application directory docs
Set 20, 2016 3:19:11 PM org.apache.catalina.startup.HostConfig deployDirectory
Informações: Deploying web application directory monisat
Set 20, 2016 3:19:11 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
Informações: validateJarFile(C:\Program Files\Apache\webapps\monisat\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Set 20, 2016 3:19:12 PM org.apache.catalina.core.StandardContext addApplicationListener
Informações: The listener “org.apache.myfaces.webapp.StartupServletContextListener” is already configured for this context. The duplicate definition has been ignored.
Set 20, 2016 3:19:17 PM org.apache.catalina.startup.HostConfig deployDirectory
Informações: Deploying web application directory ROOT
Set 20, 2016 3:19:17 PM org.apache.catalina.startup.HostConfig deployDirectory
Informações: Deploying web application directory seguradora
Set 20, 2016 3:19:18 PM org.apache.catalina.core.StandardContext addApplicationListener
Informações: The listener “org.apache.myfaces.webapp.StartupServletContextListener” is already configured for this context. The duplicate definition has been ignored.
Set 20, 2016 3:19:18 PM org.apache.catalina.session.StandardManager doLoad
Grave: IOException while loading persisted sessions: java.io.EOFException
java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.(Unknown Source)
at org.apache.catalina.util.CustomObjectInputStream.(CustomObjectInputStream.java:58)
at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:363)
at org.apache.catalina.session.StandardManager.load(StandardManager.java:322)
at org.apache.catalina.session.StandardManager.start(StandardManager.java:649)
at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:446)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4631)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

Set 20, 2016 3:19:18 PM org.apache.catalina.session.StandardManager start
Grave: Exception loading sessions from persistent storage
java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.(Unknown Source)
at org.apache.catalina.util.CustomObjectInputStream.(CustomObjectInputStream.java:58)
at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:363)
at org.apache.catalina.session.StandardManager.load(StandardManager.java:322)
at org.apache.catalina.session.StandardManager.start(StandardManager.java:649)
at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:446)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4631)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

Cara,

O tomcat não entra pois mesmo com 256MB a permgen não está aguentando

Se quiser tenta colocar mais memória. Mas esse consumo excessivo da PermGen é no mínimo estranho.

Eu tenho 5 aplicações rodando no servidor! Posso colocar 1024?
Preciso amenizar o problema, aí vou correr atrás do foco do problema.

Você pode colocar quanto quiser, mas lembra que a PermGen é um pedaço da memória do Tomcat, se a tua permGen está em 1024 a memória da tua aplicação deverá estar definida para uns 4GB.

O servidor tem 8Gb.
Qual a linha que preciso executar?
tomcat6 //US//Tomcat6 --JvmMx 1024 ++JvmOptions="-XX:MaxPermSize=256m"
Poderia me ajudar?

Na realidade se sem passar os parâmetros as coisas estão funcionando deixe assim. Definir o tamanho máximo da heap ou da permGen só impede que o processo da JVM coma toda a memória do teu servidor.

O teu servidor tem esses 8GB e só roda o Tomcat?

Sim roda…
Eu estou sempre monitorando as memórias, e a PermGen está com 64, aí vai subindo no decorrer do dia, até estourar.

O ideal é verificar o que está acontecendo, para consumir tanta memória. A Heap da JVM tem umas subdivisões (Eden Space, Survivor 1 e 2, Old Gen e Perm Gen).

Quando um objeto é instanciado ele nasce na Eden Space, e conforme o Garbage Collector vai passando e tentando matar esse cara ele é “promovido” para um grupamento de memória mais permanente. Se você tem muita gente na Perm Gen, pode contar com algum tipo de memory leak, algum recurso que está sendo aberto e não está sendo fechado. Coisas do gênero. Usa o VisualVM no tomcat para tentar entender o que está consumindo a memória.

Por que limitar, só vai fazer com que a aplicação pare de funcionar antes.