Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-16284

viewpdf macro causes OOM when used to view large pdf documents

XMLWordPrintable

      If the viewpdf macro is used to view a sufficiently large pdf, say the Conf 3.0 documentation pdf, which currently weighs in at 45mb

      http://confluence.atlassian.com/display/ALLDOC/Download+the+Confluence+documentation

      It will cause so much heap pressure that the instance will either OOM, or spend so much time in Full GC that it becomes unusable.

      2009-07-06 23:24:52,408 ERROR [pool-2-thread-1] [com.benryan.conversion.SlideConversionThread] run problem while converting confluence.pdf
       -- url: /plugins/servlet/pptslide | userName: dcheney
      java.lang.OutOfMemoryError: GC overhead limit exceeded
      	at java.awt.image.SinglePixelPackedSampleModel.getPixels(SinglePixelPackedSampleModel.java:468)
      	at java.awt.image.Raster.getPixels(Raster.java:1583)
      	at java.awt.image.WritableRaster.setRect(WritableRaster.java:449)
      	at sun.awt.image.SunWritableRaster.setRect(SunWritableRaster.java:156)
      	at sun.awt.image.ByteInterleavedRaster.setRect(ByteInterleavedRaster.java:1134)
      	at java.awt.image.WritableRaster.setRect(WritableRaster.java:388)
      	at sun.awt.image.SunWritableRaster.setRect(SunWritableRaster.java:151)
      	at com.sun.imageio.plugins.jpeg.JPEGImageWriter.grabPixels(JPEGImageWriter.java:1653)
      	at com.sun.imageio.plugins.jpeg.JPEGImageWriter.writeImage(Native Method)
      	at com.sun.imageio.plugins.jpeg.JPEGImageWriter.write(JPEGImageWriter.java:996)
      	at javax.imageio.ImageWriter.write(ImageWriter.java:598)
      	at javax.imageio.ImageIO.write(ImageIO.java:1479)
      	at javax.imageio.ImageIO.write(ImageIO.java:1565)
      	at com.benryan.conversion.SlideConversionThread.convertFile(SlideConversionThread.java:119)
      	at com.benryan.conversion.SlideConversionThread.run(SlideConversionThread.java:139)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:619)
      

              slancashire Steve Lancashire (Inactive)
              dcheney David Cheney (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: