java.lang.OutOfMemoryError: Java heap space

Atlassian JIRA | Richard Cordova [Atlassian] | 8 months ago
  1. 0

    JIRA can run out of memory attempting to render a chart. An error similar to the following will be visible in the application log: {noformat} java.lang.OutOfMemoryError: Java heap space at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:75) at java.awt.image.Raster.createPackedRaster(Raster.java:467) at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1032) at java.awt.image.BufferedImage.<init>(BufferedImage.java:340) at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1407) at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1389) at com.atlassian.jira.charts.jfreechart.ChartHelper.createChartImageInline(ChartHelper.java:126) at com.atlassian.jira.charts.jfreechart.ChartHelper.generateInline(ChartHelper.java:85) at com.atlassian.jira.charts.RecentlyCreatedChart.generateChartInternal(RecentlyCreatedChart.java:162) at com.atlassian.jira.charts.RecentlyCreatedChart.generateInlineChart(RecentlyCreatedChart.java:83) at com.atlassian.jira.charts.DefaultChartFactory.generateRecentlyCreated(DefaultChartFactory.java:114) ... 2 filtered at java.lang.reflect.Method.invoke(Method.java:497) at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) at com.sun.proxy.$Proxy143.generateRecentlyCreated(Unknown Source) ... 2 filtered at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56) at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70) at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) {noformat}

    Atlassian JIRA | 8 months ago | Richard Cordova [Atlassian]
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    h3. Summary While rendering the charts in gadgets with large amount of data and big dimensions, there is a possibility of JIRA running out of memory. h3. Steps to Reproduce 1. Add a 'recently created' chart gadget to the dashboard, select a project which has large number of issues. 2. Specify a large value for width and height in the REST API that is used to generate the chart. h3. Expected Results Chart is rendered properly or validation error is thrown. h3. Actual Results Chart is not rendered and the below out of memory exception is seen in logs: {noformat} java.lang.OutOfMemoryError: Java heap space at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:75) at java.awt.image.Raster.createPackedRaster(Raster.java:467) at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1032) at java.awt.image.BufferedImage.<init>(BufferedImage.java:340) at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1407) at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1389) at com.atlassian.jira.charts.jfreechart.ChartHelper.createChartImageInline(ChartHelper.java:126) at com.atlassian.jira.charts.jfreechart.ChartHelper.generateInline(ChartHelper.java:85) at com.atlassian.jira.charts.RecentlyCreatedChart.generateChartInternal(RecentlyCreatedChart.java:162) at com.atlassian.jira.charts.RecentlyCreatedChart.generateInlineChart(RecentlyCreatedChart.java:83) at com.atlassian.jira.charts.DefaultChartFactory.generateRecentlyCreated(DefaultChartFactory.java:114) ... 2 filtered at java.lang.reflect.Method.invoke(Method.java:497) at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) at com.sun.proxy.$Proxy143.generateRecentlyCreated(Unknown Source) ... 2 filtered at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56) at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70) at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) {noformat}

    Atlassian JIRA | 8 months ago | Richard Cordova [Atlassian]
    java.lang.OutOfMemoryError: Java heap space
  3. 0

    GitHub comment 119#126861593

    GitHub | 1 year ago | lolodomo
    java.lang.OutOfMemoryError: Java heap space
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    PDFBOX java.lang.OutOfMemoryError: java heap space; GC overhead limit exceeded

    Stack Overflow | 1 year ago | DMeng
    java.lang.OutOfMemoryError: Java heap space
  6. 0

    Optimum Memory (can compromise on speed) way to Transcode

    xmlgraphics-batik-users | 1 year ago | Raja Nagendra Kumar
    java.lang.OutOfMemoryError: Java heap space

    1 unregistered visitors
    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.awt.image.DataBufferInt.<init>()
    2. Java RT
      BufferedImage.<init>
      1. java.awt.image.DataBufferInt.<init>(DataBufferInt.java:75)
      2. java.awt.image.Raster.createPackedRaster(Raster.java:467)
      3. java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1032)
      4. java.awt.image.BufferedImage.<init>(BufferedImage.java:340)
      4 frames
    3. jfreechart
      JFreeChart.createBufferedImage
      1. org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1407)
      2. org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1389)
      2 frames
    4. com.atlassian.jira
      DefaultChartFactory.generateRecentlyCreated
      1. com.atlassian.jira.charts.jfreechart.ChartHelper.createChartImageInline(ChartHelper.java:126)
      2. com.atlassian.jira.charts.jfreechart.ChartHelper.generateInline(ChartHelper.java:85)
      3. com.atlassian.jira.charts.RecentlyCreatedChart.generateChartInternal(RecentlyCreatedChart.java:162)
      4. com.atlassian.jira.charts.RecentlyCreatedChart.generateInlineChart(RecentlyCreatedChart.java:83)
      5. com.atlassian.jira.charts.DefaultChartFactory.generateRecentlyCreated(DefaultChartFactory.java:114)
      5 frames