java.lang.OutOfMemoryError: Java heap space

Atlassian JIRA | Robert Chang [Atlassian] | 6 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    The following is part of the default Page Layout in Confluence: {code} #applyDecorator("root") #decoratorParam("sitemeshPage" $sitemeshPage) #decoratorParam("page" $page) #decoratorParam("context" "comments") #end {code} If "#decoratorParam("context" "comments")" is taken out by editing the layout, accessing a page affected by this will cause Confluence to run out of memory. This can happen even if the custom layout is applied at a space level, meaning space admins can take down Confluence accidentally. The stack trace: {code} 2011-06-24 07:11:54,728 ERROR [http-8092-2] [[Standalone].[localhost].[/].[action]] log Servlet.service() for servlet action threw exception -- referer: http://localhost:8092/spaces/listdecorators.action?key=TEST | url: /display/TEST/Home | userName: admin java.lang.OutOfMemoryError: Java heap space at java.util.AbstractList.iterator(AbstractList.java:273) at com.opensymphony.xwork.util.CompoundRootAccessor.getProperty(CompoundRootAccessor.java:88) at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1603) at ognl.ASTProperty.getValueBody(ASTProperty.java:96) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:171) at ognl.SimpleNode.getValue(SimpleNode.java:193) at ognl.Ognl.getValue(Ognl.java:333) at ognl.Ognl.getValue(Ognl.java:310) at com.opensymphony.xwork.util.OgnlValueStack.findValue(OgnlValueStack.java:141) at com.opensymphony.webwork.views.velocity.WebWorkVelocityContext.internalGet(WebWorkVelocityContext.java:72) at org.apache.velocity.context.AbstractContext.get(AbstractContext.java:193) at org.apache.velocity.context.InternalContextAdapterImpl.get(InternalContextAdapterImpl.java:286) at com.atlassian.confluence.velocity.context.ChainedVelocityContext.internalGet(ChainedVelocityContext.java:46) at org.apache.velocity.context.AbstractContext.get(AbstractContext.java:193) at org.apache.velocity.context.InternalContextAdapterImpl.get(InternalContextAdapterImpl.java:286) at org.apache.velocity.context.ChainedInternalContextAdapter.get(ChainedInternalContextAdapter.java:87) at org.apache.velocity.context.ProxyVMContext.get(ProxyVMContext.java:248) at com.atlassian.confluence.velocity.context.ChainedVelocityContext.internalGet(ChainedVelocityContext.java:46) at org.apache.velocity.context.AbstractContext.get(AbstractContext.java:193) at org.apache.velocity.context.InternalContextAdapterImpl.get(InternalContextAdapterImpl.java:286) at com.atlassian.confluence.velocity.context.ChainedVelocityContext.internalGet(ChainedVelocityContext.java:46) at org.apache.velocity.context.AbstractContext.get(AbstractContext.java:193) at org.apache.velocity.context.InternalContextAdapterImpl.get(InternalContextAdapterImpl.java:286) at org.apache.velocity.context.ChainedInternalContextAdapter.get(ChainedInternalContextAdapter.java:87) at org.apache.velocity.context.ProxyVMContext.get(ProxyVMContext.java:248) at com.atlassian.confluence.velocity.context.ChainedVelocityContext.internalContainsKey(ChainedVelocityContext.java:59) at org.apache.velocity.context.AbstractContext.containsKey(AbstractContext.java:217) at org.apache.velocity.context.InternalContextAdapterImpl.containsKey(InternalContextAdapterImpl.java:294) at com.atlassian.confluence.velocity.context.ChainedVelocityContext.internalGet(ChainedVelocityContext.java:46) at org.apache.velocity.context.AbstractContext.get(AbstractContext.java:193) at org.apache.velocity.context.InternalContextAdapterImpl.get(InternalContextAdapterImpl.java:286) at org.apache.velocity.context.ChainedInternalContextAdapter.get(ChainedInternalContextAdapter.java:87) {code} Please see attached screenshot for a heap dump snapshot that shows millions of ognl.Evaluation objects.

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

    The following is part of the default Page Layout in Confluence: {code} #applyDecorator("root") #decoratorParam("sitemeshPage" $sitemeshPage) #decoratorParam("page" $page) #decoratorParam("context" "comments") #end {code} If "#decoratorParam("context" "comments")" is taken out by editing the layout, accessing a page affected by this will cause Confluence to run out of memory. This can happen even if the custom layout is applied at a space level, meaning space admins can take down Confluence accidentally. The stack trace: {code} 2011-06-24 07:11:54,728 ERROR [http-8092-2] [[Standalone].[localhost].[/].[action]] log Servlet.service() for servlet action threw exception -- referer: http://localhost:8092/spaces/listdecorators.action?key=TEST | url: /display/TEST/Home | userName: admin java.lang.OutOfMemoryError: Java heap space at java.util.AbstractList.iterator(AbstractList.java:273) at com.opensymphony.xwork.util.CompoundRootAccessor.getProperty(CompoundRootAccessor.java:88) at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1603) at ognl.ASTProperty.getValueBody(ASTProperty.java:96) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:171) at ognl.SimpleNode.getValue(SimpleNode.java:193) at ognl.Ognl.getValue(Ognl.java:333) at ognl.Ognl.getValue(Ognl.java:310) at com.opensymphony.xwork.util.OgnlValueStack.findValue(OgnlValueStack.java:141) at com.opensymphony.webwork.views.velocity.WebWorkVelocityContext.internalGet(WebWorkVelocityContext.java:72) at org.apache.velocity.context.AbstractContext.get(AbstractContext.java:193) at org.apache.velocity.context.InternalContextAdapterImpl.get(InternalContextAdapterImpl.java:286) at com.atlassian.confluence.velocity.context.ChainedVelocityContext.internalGet(ChainedVelocityContext.java:46) at org.apache.velocity.context.AbstractContext.get(AbstractContext.java:193) at org.apache.velocity.context.InternalContextAdapterImpl.get(InternalContextAdapterImpl.java:286) at org.apache.velocity.context.ChainedInternalContextAdapter.get(ChainedInternalContextAdapter.java:87) at org.apache.velocity.context.ProxyVMContext.get(ProxyVMContext.java:248) at com.atlassian.confluence.velocity.context.ChainedVelocityContext.internalGet(ChainedVelocityContext.java:46) at org.apache.velocity.context.AbstractContext.get(AbstractContext.java:193) at org.apache.velocity.context.InternalContextAdapterImpl.get(InternalContextAdapterImpl.java:286) at com.atlassian.confluence.velocity.context.ChainedVelocityContext.internalGet(ChainedVelocityContext.java:46) at org.apache.velocity.context.AbstractContext.get(AbstractContext.java:193) at org.apache.velocity.context.InternalContextAdapterImpl.get(InternalContextAdapterImpl.java:286) at org.apache.velocity.context.ChainedInternalContextAdapter.get(ChainedInternalContextAdapter.java:87) at org.apache.velocity.context.ProxyVMContext.get(ProxyVMContext.java:248) at com.atlassian.confluence.velocity.context.ChainedVelocityContext.internalContainsKey(ChainedVelocityContext.java:59) at org.apache.velocity.context.AbstractContext.containsKey(AbstractContext.java:217) at org.apache.velocity.context.InternalContextAdapterImpl.containsKey(InternalContextAdapterImpl.java:294) at com.atlassian.confluence.velocity.context.ChainedVelocityContext.internalGet(ChainedVelocityContext.java:46) at org.apache.velocity.context.AbstractContext.get(AbstractContext.java:193) at org.apache.velocity.context.InternalContextAdapterImpl.get(InternalContextAdapterImpl.java:286) at org.apache.velocity.context.ChainedInternalContextAdapter.get(ChainedInternalContextAdapter.java:87) {code} Please see attached screenshot for a heap dump snapshot that shows millions of ognl.Evaluation objects.

    Atlassian JIRA | 6 years ago | Robert Chang [Atlassian]
    java.lang.OutOfMemoryError: Java heap space
  3. 0

    Getting java heap space error while running a mapreduce code for large dataset

    Stack Overflow | 3 years ago | Monami Sen
    java.lang.OutOfMemoryError: Java heap space
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Getting exception while compiling javac

    Google Groups | 7 years ago | afishler
    java.lang.OutOfMemoryError: Java heap space
  6. 0

    Shared Services Console Can not connect

    Oracle Community | 4 years ago | 873381
    java.lang.OutOfMemoryError: getNewTla
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.OutOfMemoryError

    Java heap space

    at java.util.AbstractList.iterator()
  2. Java RT
    AbstractList.iterator
    1. java.util.AbstractList.iterator(AbstractList.java:273)
    1 frame
  3. XWork Tiger Extensions
    CompoundRootAccessor.getProperty
    1. com.opensymphony.xwork.util.CompoundRootAccessor.getProperty(CompoundRootAccessor.java:88)
    1 frame
  4. OGNL - Object Graph Navigation Library
    Ognl.getValue
    1. ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1603)
    2. ognl.ASTProperty.getValueBody(ASTProperty.java:96)
    3. ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:171)
    4. ognl.SimpleNode.getValue(SimpleNode.java:193)
    5. ognl.Ognl.getValue(Ognl.java:333)
    6. ognl.Ognl.getValue(Ognl.java:310)
    6 frames
  5. XWork Tiger Extensions
    OgnlValueStack.findValue
    1. com.opensymphony.xwork.util.OgnlValueStack.findValue(OgnlValueStack.java:141)
    1 frame
  6. WebWork
    WebWorkVelocityContext.internalGet
    1. com.opensymphony.webwork.views.velocity.WebWorkVelocityContext.internalGet(WebWorkVelocityContext.java:72)
    1 frame
  7. Apache Velocity
    InternalContextAdapterImpl.get
    1. org.apache.velocity.context.AbstractContext.get(AbstractContext.java:193)
    2. org.apache.velocity.context.InternalContextAdapterImpl.get(InternalContextAdapterImpl.java:286)
    2 frames
  8. com.atlassian.confluence
    ChainedVelocityContext.internalGet
    1. com.atlassian.confluence.velocity.context.ChainedVelocityContext.internalGet(ChainedVelocityContext.java:46)
    1 frame
  9. Apache Velocity
    ProxyVMContext.get
    1. org.apache.velocity.context.AbstractContext.get(AbstractContext.java:193)
    2. org.apache.velocity.context.InternalContextAdapterImpl.get(InternalContextAdapterImpl.java:286)
    3. org.apache.velocity.context.ChainedInternalContextAdapter.get(ChainedInternalContextAdapter.java:87)
    4. org.apache.velocity.context.ProxyVMContext.get(ProxyVMContext.java:248)
    4 frames
  10. com.atlassian.confluence
    ChainedVelocityContext.internalGet
    1. com.atlassian.confluence.velocity.context.ChainedVelocityContext.internalGet(ChainedVelocityContext.java:46)
    1 frame
  11. Apache Velocity
    InternalContextAdapterImpl.get
    1. org.apache.velocity.context.AbstractContext.get(AbstractContext.java:193)
    2. org.apache.velocity.context.InternalContextAdapterImpl.get(InternalContextAdapterImpl.java:286)
    2 frames
  12. com.atlassian.confluence
    ChainedVelocityContext.internalGet
    1. com.atlassian.confluence.velocity.context.ChainedVelocityContext.internalGet(ChainedVelocityContext.java:46)
    1 frame
  13. Apache Velocity
    ProxyVMContext.get
    1. org.apache.velocity.context.AbstractContext.get(AbstractContext.java:193)
    2. org.apache.velocity.context.InternalContextAdapterImpl.get(InternalContextAdapterImpl.java:286)
    3. org.apache.velocity.context.ChainedInternalContextAdapter.get(ChainedInternalContextAdapter.java:87)
    4. org.apache.velocity.context.ProxyVMContext.get(ProxyVMContext.java:248)
    4 frames
  14. com.atlassian.confluence
    ChainedVelocityContext.internalContainsKey
    1. com.atlassian.confluence.velocity.context.ChainedVelocityContext.internalContainsKey(ChainedVelocityContext.java:59)
    1 frame
  15. Apache Velocity
    InternalContextAdapterImpl.containsKey
    1. org.apache.velocity.context.AbstractContext.containsKey(AbstractContext.java:217)
    2. org.apache.velocity.context.InternalContextAdapterImpl.containsKey(InternalContextAdapterImpl.java:294)
    2 frames
  16. com.atlassian.confluence
    ChainedVelocityContext.internalGet
    1. com.atlassian.confluence.velocity.context.ChainedVelocityContext.internalGet(ChainedVelocityContext.java:46)
    1 frame
  17. Apache Velocity
    ChainedInternalContextAdapter.get
    1. org.apache.velocity.context.AbstractContext.get(AbstractContext.java:193)
    2. org.apache.velocity.context.InternalContextAdapterImpl.get(InternalContextAdapterImpl.java:286)
    3. org.apache.velocity.context.ChainedInternalContextAdapter.get(ChainedInternalContextAdapter.java:87)
    3 frames