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

High resolution TIFF images causing Out Of Memory during generation of preview

      Summary

      When adding TIFF images with high resolution (10K - 16K) the attachment does not render a thumbnail on the page
      In the case of the 16K image, the conversion processes consume all available heap memory and turning to Out Of Memory error.
      In case of 2GB of heap memory the heap usage on Out of Memory event will be the following:

      Steps to Reproduce

      1. Get TIFF with big pixel size (i.e. Hubble’s Largest Images) or scan from one of the production scanners like Océ TC4
      2. Adapt the uploading limit setting OR convert the file into grayscale to reduce the file size but keep the pixel size.
      3. Add it to the page
      4. Push Save button

      Expected Results

      The preview generated or notification occurred that's not possible to generate a preview due to bug pixel size

      Actual Results

      The system became irresponsive and in the log a lot of methods through an error: java.lang.OutOfMemoryError: Java heap space

      Workaround

      Disable the file conversions service

      You may choose to disable the file conversion service to prevent any further out of memory errors.
      This means that only images (excluding tif) and PDF files will appear in the preview. Users won't be able to preview or comment on other files.

      To disable the file conversion service:

      1. Go to Cog icon > Add-ons.
      2. Locate the Confluence Document Conversion Library system add-on.
      3. Disable the File Conversions (file-conversions) module.

      Once disabled, Office and other files won't appear in the preview (even if they were previously uploaded), and thumbnails for existing Office and PDF files will revert back to being placeholder thumbnails (with an icon, rather than a preview of the document). You also won't be able to view any existing inline comments on the file (as the preview is disabled).

            [CONFSERVER-41164] High resolution TIFF images causing Out Of Memory during generation of preview

            Maksym Fedoryshyh made changes -
            Remote Link New: This issue links to "Page (Extranet)" [ 713484 ]
            Adilson Carvalho (Inactive) made changes -
            Remote Link Original: This issue links to "Page (Extranet)" [ 525381 ]
            Adilson Carvalho (Inactive) made changes -
            Remote Link New: This issue links to "Page (Extranet)" [ 525474 ]
            Adilson Carvalho (Inactive) made changes -
            Remote Link New: This issue links to "Page (Extranet)" [ 525381 ]
            Brian made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 502496 ]
            Bernabe Theodore Costales III (Inactive) made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 502246 ]
            Rob made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 494629 ]
            Jen Marfell (Inactive) made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 492157 ]
            Bradley Hyde made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 479343 ]

            Quan Pham added a comment -

            A fix for this issue is available to Server and Data Center customers in Confluence 7.0.1
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Quan Pham added a comment - A fix for this issue is available to Server and Data Center customers in Confluence 7.0.1 Upgrade now or check out the Release Notes to see what other issues are resolved.

              bhyde Bradley Hyde
              ashaleev Anton Shaleev
              Affected customers:
              30 This affects my team
              Watchers:
              29 Start watching this issue

                Created:
                Updated:
                Resolved: