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

OutOfMemory while signing large documents - continued

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.23
    • None
    • Signing
    • None

    Description

      Continuation of PDFBOX-2512

       

      in COSWriter.prepareIncrement(), for the test case cosDoc.getXrefTable().keySet() has size 5925. For each of thes keys, cosDoc.getObjectFromPool() gets an object that is not just referencing some part of the input document, but duplicates it (which is unavoidable in the case where they are decompressed with FlateFilter - albeit this could possibly be done "lazy")

      -Xmx20m  746/5925
      -Xmx25m 1615/5925
      -Xmx30m 2800/5925
      -Xmx40m 3872/5925
      -Xmx55m 5773/5925

      With 60m, it gets them all, but dies later with less telling

         java.lang.OutOfMemoryError: GC overhead limit exceeded

       

      This assumes the patch of PDFBOX-5067 already in place - or using CreateVisibleSignature2.java as starting point

      Attachments

        1. issue5068.patch
          17 kB
          robo
        2. minimum.pdf
          30 kB
          Ralf Hauser
        3. RandomAccessReadBufferDiag.java
          3 kB
          Ralf Hauser

        Activity

          People

            lehmi Andreas Lehmkühler
            hauser@acm.org Ralf Hauser
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: