8 Replies Latest reply on Aug 26, 2008 3:48 PM by Georges Goebel

    java.lang.OutOfMemoryError: PermGen space

    Tony Herstell Master

      If I rely on Hot Deploy then I get this after a few times.


      What are the recommended settings for the prod server?


      I usually resort to always shutting down and starting the prod server.


      Never get this on Dev server as thats all controlled by MyEclipse deployment I guess; i.e. I never deploy on Dev...



      type Exception report
      
      message
      
      description The server encountered an internal error () that prevented it from fulfilling this request.
      
      exception
      
      javax.servlet.ServletException: Filter execution threw an exception
              org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      
      root cause
      
      java.lang.OutOfMemoryError: PermGen space
              java.lang.ClassLoader.defineClass1(Native Method)
              java.lang.ClassLoader.defineClass(ClassLoader.java:620)
              java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
              org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1817)
              org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)
              org.jboss.web.tomcat.service.WebAppClassLoader.findClass(WebAppClassLoader.java:139)
              org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1325)
              org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
              java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
              org.ajax4jsf.org.w3c.tidy.Tidy.parse(Tidy.java:340)
              org.ajax4jsf.org.w3c.tidy.Tidy.parse(Tidy.java:282)
              org.ajax4jsf.org.w3c.tidy.Tidy.parseDOM(Tidy.java:625)
              org.ajax4jsf.webapp.tidy.TidyParser.parseHtmlByTidy(TidyParser.java:100)
              org.ajax4jsf.webapp.tidy.TidyParser.parseHtml(TidyParser.java:217)
              org.ajax4jsf.webapp.FilterServletResponseWrapper.parseContent(FilterServletResponseWrapper.java:613)
              org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:319)
              org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
              org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:366)
              org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
              org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
              org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
              org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
              org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      
      note The full stack trace of the root cause is available in the JBossWeb/2.0.0.GA logs.