AnsweredAssumed Answered

java.lang.OutOfMemoryError: PermGen space in Alfresco 2.1

Question asked by simon on Jul 19, 2007
Latest reply on Oct 4, 2007 by kevinr
Alfresco,

We are trying out Alfresco 2.1 Comunity here and I'm impressed with the imporovements since 1.4, nice. After working on a clean installation for a while we got the following error:

09:12:17,398 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/alfresco].[jsp]] Servlet.service() for servlet jsp threw exception
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.java:125)
        at sun.nio.cs.AbstractCharsetProvider.access$000(AbstractCharsetProvider.java:28)
        at sun.nio.cs.AbstractCharsetProvider$1.next(AbstractCharsetProvider.java:165)
        at sun.nio.cs.AbstractCharsetProvider$1.next(AbstractCharsetProvider.java:168)
        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.createList(UICharsetSelector.java:78)
        at org.alfresco.web.ui.repo.component.UICharsetSelector.encodeBegin(UICharsetSelector.java:60)
        at org.alfresco.web.ui.common.Utils.encodeRecursive(Utils.java:409)
        at org.alfresco.web.ui.repo.renderer.property.PropertySheetItemRenderer.encodeChildren(PropertySheetItemRenderer.java:109)
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:527)
        at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:414)
        at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:229)
        at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:101)
        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539)
        at org.alfresco.web.ui.repo.component.property.UIPropertySheet.encodeEnd(UIPropertySheet.java:200)
        at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:498)
        at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:366)
        at org.apache.jsp.jsp.content.edit_002dcontent_002dproperties_jsp._jspx_meth_r_005fpropertySheetGrid_005f0(edit_002dcontent_002dproperties_jsp.java:166)
        at org.apache.jsp.jsp.content.edit_002dcontent_002dproperties_jsp._jspService(edit_002dcontent_002dproperties_jsp.java:74)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)

After this it's impossible to login… Our Alfresco is running on a standard Linux PC with 1GB RAM, this should do it, shouldn't it?

Outcomes