AnsweredAssumed Answered

Out of memory error: permgen space

Question asked by mholmes on Sep 4, 2008
Latest reply on Sep 5, 2008 by mholmes
I keep getting this error.  I've tried to restart tomcat, alfresco and the site is locked up until I reboot the server.  I know you should never have to reboot a server (linux) but i am not sure what service is hosed and what service to restart.  And Actually,  what is causeing this problem.  If at any time you add anything to the alfresco pages, it is hosed.

Here is a snippet from the /opt/alfresco/alfresco.log file:  Actually the first part is from the buffer of my putty screen.  This logfile is large so I sliced out a small part. if more is needed, theres more.:



login as: mholmes
Linux utserver3 2.6.24-19-server #1 SMP Wed Jun 18 15:18:00 UTC 2008 i686

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/
Last login: Thu Sep  4 14:55:45 2008 from mikehpc.metalfinishingco.com
mholmes@utserver3:~$ cd /opt/alfresco
mholmes@utserver3:/opt/alfresco$ ./alfresco.sh start
Using CATALINA_BASE:   /opt/alfresco/tomcat
Using CATALINA_HOME:   /opt/alfresco/tomcat
Using CATALINA_TMPDIR: /opt/alfresco/tomcat/temp
Using JRE_HOME:       /usr/lib/jvm/java-1.5.0-sun
mholmes@utserver3:/opt/alfresco$ cd /tomcat
-bash: cd: /tomcat: No such file or directory
mholmes@utserver3:/opt/alfresco$ cd tomcat
mholmes@utserver3:/opt/alfresco/tomcat$ ls
bin     conf     logs    RELEASE-NOTES  server  temp     work
common  LICENSE  NOTICE  RUNNING.txt    shared  webapps
mholmes@utserver3:/opt/alfresco/tomcat$ cd logs
mholmes@utserver3:/opt/alfresco/tomcat/logs$ ls
admin.2008-09-04.log     catalina.out                 localhost.2008-09-04.log
catalina.2008-09-04.log  host-manager.2008-09-04.log  manager.2008-09-04.log
mholmes@utserver3:/opt/alfresco/tomcat/logs$ nano localhost.2008-09-04.log
mholmes@utserver3:/opt/alfresco/tomcat/logs$ cd ..
mholmes@utserver3:/opt/alfresco/tomcat$ cd ..
mholmes@utserver3:/opt/alfresco$ ls
alf_data                          bin                output
alfresco-labs-tomcat-3a.1032.tar  derby.log          README_mysql.txt
alfresco.log                      extras             README.txt
alfresco.sh                       installer          tomcat
amps                              install_extension  virtual_alf.sh
apply_amps.sh                     licenses
mholmes@utserver3:/opt/alfresco$ nano alfresco.log
mholmes@utserver3:/opt/alfresco$ nano alfresco.log
  GNU nano 2.0.7             File: alfresco.log                      

        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java$
        at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:498)
        at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:366)
14:00:21,321 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhos$
java.lang.OutOfMemoryError: PermGen space
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at sun.nio.cs.AbstractCharsetProvider.lookup(AbstractCharsetProvider.ja$
        at sun.nio.cs.AbstractCharsetProvider.access$000(AbstractCharsetProvide$
        at sun.nio.cs.AbstractCharsetProvider$1.next(AbstractCharsetProvider.ja$
        at sun.nio.cs.AbstractCharsetProvider$1.next(AbstractCharsetProvider.ja$
        at java.nio.charset.Charset.put(Charset.java:508)
        at java.nio.charset.Charset.access$300(Charset.java:240)
        at java.nio.charset.Charset$4.run(Charset.java:548)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.nio.charset.Charset.availableCharsets(Charset.java:541)
        at org.alfresco.web.ui.repo.component.UICharsetSelector.getCharsetEncod$
        at org.alfresco.web.bean.content.BaseContentWizard.getEncodings(BaseCon$
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

^G Get Help  ^O WriteOut  ^R Read File ^Y Prev Page ^K Cut Text  ^C Cur Pos
^X Exit      ^J Justify   ^W Where Is  ^V Next Page ^U UnCut Text^T To Spell

Outcomes