Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-34028

No fork created when using PDFBox while generating a preview

    Details

      Description

      As stated in portal.properties:

      dl.file.entry.preview.fork.process.enabled=true
      

      should fork a new process when creating PDF.

      As it can be seen in source code, this fork is only created when ImageMagick is being used, and not when PDFBox (default) is enabled.

      How to test:

      1-Enable fork for documents preview generation (dl.file.entry.preview.fork.process.enabled=true) and startup portal.
      2-Check number of current java processes ('ps -ef | grep java')
      2-Upload some PDF files.
      3-Check if current number of java processes increased by 1.
      4-When all PDF previews are created, ensure that current java processes are the same as in (2).

      Repeat the same with dl.file.entry.preview.fork.process.enabled=false and check if java processes remains the same even just after uploading PDF files.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ginson.ren Ginson Ren
                Reporter:
                juan.gonzalez Juan Gonzalez (Inactive)
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 3 weeks, 5 days ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.0 CE B1