java.lang.OutOfMemoryError: Java heap space

Atlassian JIRA | Tom Davies [Atlassian] | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    An OOME during a restore doesn't give an indication in the UI -- the elapsed time keeps updating, but the percentage complete doesn't change. Error reported were: {noformat} 2011-08-23 10:09:22,730 JiraImportTaskExecutionThread-1 INFO admin 601x38x1 2l9e36 0:0:0:0:0:0:0:1%0 /secure/admin/XmlRestore.jspa [jira.bc.dataimport.DefaultDataImportService] Importing data is 31% complete... Aug 23, 2011 10:18:14 AM org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor processChildren SEVERE: Exception invoking periodic operation: java.lang.OutOfMemoryError: Java heap space at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:139) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1385) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1649) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1658) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1638) at java.lang.Thread.run(Thread.java:680) Aug 23, 2011 10:29:19 AM org.apache.jasper.compiler.JspReader pushFile SEVERE: Exception parsing file java.lang.OutOfMemoryError: Java heap space java.lang.OutOfMemoryError: Java heap space 2011-08-23 10:32:06,079 pool-6-thread-1 ERROR admin 601x38x1 2l9e36 0:0:0:0:0:0:0:1%0 /secure/admin/XmlRestore.jspa [jira.action.admin.OfbizImportHandler] Exception importing entity: java.lang.OutOfMemoryError: Java heap space java.lang.OutOfMemoryError: Java heap space Exception in thread "pool-6-thread-1" java.lang.OutOfMemoryError: Java heap space 2011-08-23 10:34:43,817 http-8080-4 ERROR [500ErrorPage.jsp] Exception caught in 500 page Java heap space java.lang.OutOfMemoryError: Java heap space at org.apache.velocity.runtime.parser.VelocityCharStream.<init>(VelocityCharStream.java:286) at org.apache.velocity.runtime.parser.VelocityCharStream.<init>(VelocityCharStream.java:320) at org.apache.velocity.runtime.parser.VelocityCharStream.<init>(VelocityCharStream.java:325) at org.apache.velocity.runtime.parser.Parser.<init>(Parser.java:93) at org.apache.velocity.runtime.RuntimeInstance.createNewParser(RuntimeInstance.java:636) at org.apache.velocity.runtime.RuntimeInstance.initializeParserPool(RuntimeInstance.java:623) at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:201) at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:420) at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:100) at com.atlassian.jira.web.filters.JiraImportProgressFilter.renderView(JiraImportProgressFilter.java:157) at com.atlassian.jira.web.filters.JiraImportProgressFilter.doFilter(JiraImportProgressFilter.java:132) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) 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:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:554) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:680) 2011-08-23 10:34:43,819 http-8080-1 ERROR [500ErrorPage.jsp] Exception caught in 500 page Java heap space java.lang.OutOfMemoryError: Java heap space {noformat}

    Atlassian JIRA | 6 years ago | Tom Davies [Atlassian]
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    An OOME during a restore doesn't give an indication in the UI -- the elapsed time keeps updating, but the percentage complete doesn't change. Error reported were: {noformat} 2011-08-23 10:09:22,730 JiraImportTaskExecutionThread-1 INFO admin 601x38x1 2l9e36 0:0:0:0:0:0:0:1%0 /secure/admin/XmlRestore.jspa [jira.bc.dataimport.DefaultDataImportService] Importing data is 31% complete... Aug 23, 2011 10:18:14 AM org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor processChildren SEVERE: Exception invoking periodic operation: java.lang.OutOfMemoryError: Java heap space at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:139) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1385) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1649) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1658) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1638) at java.lang.Thread.run(Thread.java:680) Aug 23, 2011 10:29:19 AM org.apache.jasper.compiler.JspReader pushFile SEVERE: Exception parsing file java.lang.OutOfMemoryError: Java heap space java.lang.OutOfMemoryError: Java heap space 2011-08-23 10:32:06,079 pool-6-thread-1 ERROR admin 601x38x1 2l9e36 0:0:0:0:0:0:0:1%0 /secure/admin/XmlRestore.jspa [jira.action.admin.OfbizImportHandler] Exception importing entity: java.lang.OutOfMemoryError: Java heap space java.lang.OutOfMemoryError: Java heap space Exception in thread "pool-6-thread-1" java.lang.OutOfMemoryError: Java heap space 2011-08-23 10:34:43,817 http-8080-4 ERROR [500ErrorPage.jsp] Exception caught in 500 page Java heap space java.lang.OutOfMemoryError: Java heap space at org.apache.velocity.runtime.parser.VelocityCharStream.<init>(VelocityCharStream.java:286) at org.apache.velocity.runtime.parser.VelocityCharStream.<init>(VelocityCharStream.java:320) at org.apache.velocity.runtime.parser.VelocityCharStream.<init>(VelocityCharStream.java:325) at org.apache.velocity.runtime.parser.Parser.<init>(Parser.java:93) at org.apache.velocity.runtime.RuntimeInstance.createNewParser(RuntimeInstance.java:636) at org.apache.velocity.runtime.RuntimeInstance.initializeParserPool(RuntimeInstance.java:623) at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:201) at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:420) at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:100) at com.atlassian.jira.web.filters.JiraImportProgressFilter.renderView(JiraImportProgressFilter.java:157) at com.atlassian.jira.web.filters.JiraImportProgressFilter.doFilter(JiraImportProgressFilter.java:132) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) 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:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:554) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:680) 2011-08-23 10:34:43,819 http-8080-1 ERROR [500ErrorPage.jsp] Exception caught in 500 page Java heap space java.lang.OutOfMemoryError: Java heap space {noformat}

    Atlassian JIRA | 6 years ago | Tom Davies [Atlassian]
    java.lang.OutOfMemoryError: Java heap space

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Java heap space

      at org.apache.velocity.runtime.parser.VelocityCharStream.<init>()
    2. Apache Velocity
      VelocityEngine.init
      1. org.apache.velocity.runtime.parser.VelocityCharStream.<init>(VelocityCharStream.java:286)
      2. org.apache.velocity.runtime.parser.VelocityCharStream.<init>(VelocityCharStream.java:320)
      3. org.apache.velocity.runtime.parser.VelocityCharStream.<init>(VelocityCharStream.java:325)
      4. org.apache.velocity.runtime.parser.Parser.<init>(Parser.java:93)
      5. org.apache.velocity.runtime.RuntimeInstance.createNewParser(RuntimeInstance.java:636)
      6. org.apache.velocity.runtime.RuntimeInstance.initializeParserPool(RuntimeInstance.java:623)
      7. org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:201)
      8. org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:420)
      9. org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:100)
      9 frames
    3. com.atlassian.jira
      JiraImportProgressFilter.doFilter
      1. com.atlassian.jira.web.filters.JiraImportProgressFilter.renderView(JiraImportProgressFilter.java:157)
      2. com.atlassian.jira.web.filters.JiraImportProgressFilter.doFilter(JiraImportProgressFilter.java:132)
      2 frames
    4. com.atlassian.core
      AbstractHttpFilter.doFilter
      1. com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)
      1 frame
    5. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:554)
      9. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
      9 frames
    6. Grizzly HTTP
      JIoEndpoint$Worker.run
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
      2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
      3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      3 frames
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:680)
      1 frame