Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-60380

OutOfMemoryError when rendering gadgets charts

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.

      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.

      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.

      Expected Results

      Chart is rendered properly or validation error is thrown.

      Actual Results

      Chart is not rendered and the below out of memory exception is seen in logs:

      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)
      

      Attachments

        Issue Links

          Activity

            People

              ohernandez@atlassian.com Oswaldo Hernandez (Inactive)
              rcordova Cordo
              Votes:
              2 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: