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

High CPU overhead when adding large zip files

    Details

      Description

      High CPU overhead when adding large zip files.

      STEPS
      1. Configure Liferay with a larger file size limit. In my case I tested with a 3GB dl.file limit and an upload limit of 50GB:
      dl.file.max.size=3221225472
      com.liferay.portal.upload.UploadServletRequestImpl.max.size=53687091200
      2. Use http://ftp.liferay.com/theDeployer.zip or prepare a 2GB zip file with a bunch of smaller files included in it.
      3. Open the tomcat temp (by default TOMCAT_HOME/temp) directory so you can easily observe the files that are added/updated in it.
      4. Go to Documents and Media -> Add -> Basic Document
      5. Add the zip file
      6. First you'll see an upload_NUMBER.zip file show up in the temp directory.
      7. Once it is completely uploaded you will see it disappear after it's added as a draft to Documents and Media

      EXPECTED RESULTS
      No additional files show up under temp, only the first one during upload.
      ACTUAL RESULTS
      Multiple files show up, first an apache-tika-XYZ.zip which will be a complete copy of the full zip, then the contents of that zip individually as apache-tika-ABC.EXT as they are processed.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 34 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M4