java.lang.OutOfMemoryError: Java heap space

Atlassian JIRA | Renato Rudnicki | 2 years ago
  1. 0

    A specific component on Chart Macro code is hanging Confluence when used the type gantt. This behaviour was tested on version 5.4.2 and 5.7.1. How to reproduce: # Create a new page on Confluence and save it # Edit this page and using Source Editor paste the content of the hangschart.txt file and try to save the page. # It will hang Confluence. On the Confluence logs you will get: {code} 2015-03-25 14:38:00,261 ERROR [http-bio-8090-exec-2] [editor.source.rest.FormatConversionResource] getEditorFormat TemplateId = null -- referer: http://192.168.213.129:8090/confluence/pages/editpage.action?pageId=2326541 | url: /confluence/rest/sourceeditor/1.0/convert/toEditorFormat | userName: admin 2015-03-25 14:43:39,405 ERROR [http-bio-8090-exec-9] [xhtml.view.macro.ViewMacroMarshaller] marshalInternal Error rendering macro: chart -- referer: http://192.168.213.129:8090/confluence/pages/editpage.action?pageId=2326541 | url: /confluence/display/REC/test | userName: admin | action: viewpage | page: 2326541 java.lang.OutOfMemoryError: Java heap space at sun.util.calendar.JulianCalendar.newCalendarDate(JulianCalendar.java:142) at java.util.GregorianCalendar.computeFields(GregorianCalendar.java:2348) at java.util.GregorianCalendar.computeTime(GregorianCalendar.java:2753) at java.util.Calendar.updateTime(Calendar.java:2606) at java.util.Calendar.getTimeInMillis(Calendar.java:1118) at java.util.Calendar.getTime(Calendar.java:1091) at org.jfree.data.time.Year.getFirstMillisecond(Year.java:241) at org.jfree.data.time.Year.peg(Year.java:180) at org.jfree.data.time.Year.<init>(Year.java:131) at org.jfree.data.time.Year.<init>(Year.java:118) at org.jfree.chart.axis.DateAxis.refreshTicksHorizontal(DateAxis.java:1491) at org.jfree.chart.axis.DateAxis.refreshTicks(DateAxis.java:1395) at org.jfree.chart.axis.ValueAxis.reserveSpace(ValueAxis.java:768) at org.jfree.chart.plot.CategoryPlot.calculateRangeAxisSpace(CategoryPlot.java:2252) at org.jfree.chart.plot.CategoryPlot.calculateAxisSpace(CategoryPlot.java:2272) at org.jfree.chart.plot.CategoryPlot.draw(CategoryPlot.java:2319) at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1039) at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1213) at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1193) at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1178) at com.atlassian.confluence.extra.chart.ChartMacro.getChartImage(ChartMacro.java:418) at com.atlassian.confluence.extra.chart.ChartMacro.execute(ChartMacro.java:321) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.atlassian.confluence.macro.xhtml.XhtmlMacroManager$ResourceAwareMacroInvocationHandler.invoke(XhtmlMacroManager.java:229) at com.sun.proxy.$Proxy2756.execute(Unknown Source) at com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshaller.marshalInternal(ViewMacroMarshaller.java:141) at com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshaller.marshal(ViewMacroMarshaller.java:88) at com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshaller.marshal(ViewMacroMarshaller.java:36) at com.atlassian.confluence.content.render.xhtml.UnmarshalMarshalFragmentTransformer.transform(UnmarshalMarshalFragmentTransformer.java:33) 2015-03-25 14:43:40,517 WARN [http-bio-8090-exec-9] [render.xhtml.transformers.DefaultFragmentTransformer] transformFragment Rendering: 'page: test v.2 (2326541)' exceeded the timeout of 120 seconds by 216798 milliseconds -- referer: http://192.168.213.129:8090/confluence/pages/editpage.action?pageId=2326541 | url: /confluence/display/REC/test | userName: admin | action: viewpage | page: 2326541 2015-03-25 14:43:40,519 ERROR [http-bio-8090-exec-9] [content.render.xhtml.DefaultRenderer] render Rendering this content exceeded the timeout of 120 seconds. -- referer: http://192.168.213.129:8090/confluence/pages/editpage.action?pageId=2326541 | url: /confluence/display/REC/test | userName: admin | action: viewpage | page: 2326541 2015-03-25 14:43:41,446 WARN [http-bio-8090-exec-9] [confluence.util.profiling.DefaultActivityMonitor] close Exceeded the threshold of 60000 ms: ActivitySnapshot{startTime=1427308682724, threadId=133, threadName='http-bio-8090-exec-9', userId='admin', type='web-request', summary='/display/REC/test'} -- referer: http://192.168.213.129:8090/confluence/pages/editpage.action?pageId=2326541 | url: /confluence/display/REC/test | userName: admin {code}

    Atlassian JIRA | 2 years ago | Renato Rudnicki
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    OutOfMemory Exception : java heap space

    Google Groups | 6 months ago | deepak singh
    java.lang.OutOfMemoryError: Java heap space* *java.lang.OutOfMemoryError: Java heap space*
  3. 0

    OutOfMemory Exception : java heap space

    Google Groups | 6 months ago | deepak singh
    java.lang.OutOfMemoryError: Java heap space* *java.lang.OutOfMemoryError: Java heap space*
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [exoplatform] [explatform] Memory requirements

    ow2.org | 1 year ago
    java.lang.OutOfMemoryError: Java heap space>java.lang.OutOfMemoryError: Java heap space
  6. 0

    OutOfMemory Exception : java heap space

    Google Groups | 6 months ago | deepak singh
    java.lang.OutOfMemoryError: Java heap space* *java.lang.OutOfMemoryError: Java heap space*

    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 sun.util.calendar.JulianCalendar.newCalendarDate()
    2. Java RT
      Calendar.getTime
      1. sun.util.calendar.JulianCalendar.newCalendarDate(JulianCalendar.java:142)
      2. java.util.GregorianCalendar.computeFields(GregorianCalendar.java:2348)
      3. java.util.GregorianCalendar.computeTime(GregorianCalendar.java:2753)
      4. java.util.Calendar.updateTime(Calendar.java:2606)
      5. java.util.Calendar.getTimeInMillis(Calendar.java:1118)
      6. java.util.Calendar.getTime(Calendar.java:1091)
      6 frames
    3. jfreechart
      JFreeChart.createBufferedImage
      1. org.jfree.data.time.Year.getFirstMillisecond(Year.java:241)
      2. org.jfree.data.time.Year.peg(Year.java:180)
      3. org.jfree.data.time.Year.<init>(Year.java:131)
      4. org.jfree.data.time.Year.<init>(Year.java:118)
      5. org.jfree.chart.axis.DateAxis.refreshTicksHorizontal(DateAxis.java:1491)
      6. org.jfree.chart.axis.DateAxis.refreshTicks(DateAxis.java:1395)
      7. org.jfree.chart.axis.ValueAxis.reserveSpace(ValueAxis.java:768)
      8. org.jfree.chart.plot.CategoryPlot.calculateRangeAxisSpace(CategoryPlot.java:2252)
      9. org.jfree.chart.plot.CategoryPlot.calculateAxisSpace(CategoryPlot.java:2272)
      10. org.jfree.chart.plot.CategoryPlot.draw(CategoryPlot.java:2319)
      11. org.jfree.chart.JFreeChart.draw(JFreeChart.java:1039)
      12. org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1213)
      13. org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1193)
      14. org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1178)
      14 frames
    4. com.atlassian.confluence
      ChartMacro.execute
      1. com.atlassian.confluence.extra.chart.ChartMacro.getChartImage(ChartMacro.java:418)
      2. com.atlassian.confluence.extra.chart.ChartMacro.execute(ChartMacro.java:321)
      2 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    6. com.atlassian.confluence
      XhtmlMacroManager$ResourceAwareMacroInvocationHandler.invoke
      1. com.atlassian.confluence.macro.xhtml.XhtmlMacroManager$ResourceAwareMacroInvocationHandler.invoke(XhtmlMacroManager.java:229)
      1 frame
    7. com.sun.proxy
      $Proxy2756.execute
      1. com.sun.proxy.$Proxy2756.execute(Unknown Source)
      1 frame
    8. com.atlassian.confluence
      UnmarshalMarshalFragmentTransformer.transform
      1. com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshaller.marshalInternal(ViewMacroMarshaller.java:141)
      2. com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshaller.marshal(ViewMacroMarshaller.java:88)
      3. com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshaller.marshal(ViewMacroMarshaller.java:36)
      4. com.atlassian.confluence.content.render.xhtml.UnmarshalMarshalFragmentTransformer.transform(UnmarshalMarshalFragmentTransformer.java:33)
      4 frames