Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-4525

PDF completely blow up the RAM on RedHat

    XMLWordPrintableJSON

    Details

      Description

      We received a PDF that has completly killed the Tomcat on a production application.

      The symptoms are the same as PDFBOX-4392, but the PDF file is different.

      Messages: 6000 times

      avr. 24, 2019 3:02:33 PM org.apache.pdfbox.pdmodel.graphics.color.PDICCBased ensureDisplayProfile
      AVERTISSEMENT: ICC profile is Perceptual, ignoring, treating as Display class
      

      We test it on RedHat5 VM in develop and reproduce it with a sample test program that read the PDF, and create a small image. The program is looping and after the 4th reading it took 20Gb of memory and was killed by the OS to prevent the crash of the computer.

      I've tried with version 2.0.15 and the problem still be the same.

      We can test it with java -jar testPdfBox.jar crash_redhat.pdf

        Attachments

        1. crash_redhat.pdf
          3.40 MB
          lienhardt
        2. testPdfBox.jar
          11.21 MB
          lienhardt

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              add_erl lienhardt
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: