3 Replies Latest reply on Oct 13, 2009 1:37 AM by Sebastian Schneider

    java.lang.OutOfMemoryError: PermGen space how can i fix it?

    Puchong V Newbie

      i'm use jbpm 3.3.1. when i open gwt-console this error will happen on my Server

      java.lang.OutOfMemoryError: PermGen space

      something about birt report

        • 2. Re: java.lang.OutOfMemoryError: PermGen space how can i fix
          Puchong V Newbie

          === Environment ==============================
          - jBPM Version: JBPM3.3.1

          === Problem description =========================
          when i open gwt-console

          11:55:35,030 WARN [Parameters] Parameters: Invalid chunk ignored.
          11:55:40,404 INFO [ReportFacade] BIRT home: /Users/OptixPro/Desktop/jboss-4.2.3.GA/server/default/data/birt/ReportEngine
          11:55:40,404 INFO [ReportFacade] Output dir: /Users/OptixPro/Desktop/jboss-4.2.3.GA/server/default/data/birt/output/
          11:55:40,405 INFO [ReportFacade] Report dir: /Users/OptixPro/Desktop/jboss-4.2.3.GA/server/default/data/birt/
          11:55:44,099 INFO [BirtService] Service created: org.eclipse.birt.report.engine.api.impl.ReportEngine@264ab70a
          11:55:45,623 WARN [Parameters] Parameters: Invalid chunk ignored.
          11:55:54,487 ERROR [[Resteasy]] Servlet.service() for servlet Resteasy threw exception
          11:55:56,589 ERROR [CoyoteAdapter] An exception or error occurred in the container during the request processing
          java.lang.OutOfMemoryError: PermGen space
           at java.lang.Throwable.getStackTraceElement(Native Method)
           at java.lang.Throwable.getOurStackTrace(Throwable.java:591)
           at java.lang.Throwable.printStackTraceAsCause(Throwable.java:529)
           at java.lang.Throwable.printStackTrace(Throwable.java:516)
           at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:59)
           at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:342)
           at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:304)
           at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
           at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
           at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)
           at org.apache.log4j.Category.callAppenders(Category.java:203)
           at org.apache.log4j.Category.forcedLog(Category.java:388)
           at org.apache.log4j.Category.log(Category.java:853)
           at org.jboss.logging.Log4jLoggerPlugin.error(Log4jLoggerPlugin.java:206)
           at org.jboss.logging.Logger.error(Logger.java:234)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
           at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
           at java.lang.Thread.run(Thread.java:637)
          11:56:00,097 ERROR [[Resteasy]] Servlet.service() for servlet Resteasy threw exception
          org.jboss.resteasy.spi.UnhandledException: java.lang.OutOfMemoryError: PermGen space
           at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:307)
           at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:218)
           at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:194)
           at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:352)
           at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:182)
           at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:90)
           at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:66)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
           at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
           at java.lang.Thread.run(Thread.java:637)
          Caused by: java.lang.OutOfMemoryError: PermGen space
          11:56:14,353 ERROR [STDERR] Exception in thread "State Saver"
          


          may be gwt-console is not stable in jbpm3.x ?

          thankyou for help.

          • 3. Re: java.lang.OutOfMemoryError: PermGen space how can i fix
            Sebastian Schneider Master

            Does this error always happen? Even after a fresh restart of JBoss? Are there other applications running on the server?

            java.lang.OutOfMemoryError: PermGen space PermGen space is sometimes caused after lots of deployments or if you use a lot of runtime-generated classes. I don't really know about jBPM 3.x since I started with 4.x and I have never really used 3.x.

            I assume you have searched JIRA for the problem?