Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-17975

Office export is using way too much memory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 12.8
    • Fix Version/s: 13.1-rc-1
    • Component/s: Office
    • Labels:
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      I noticed a OOM on myxwiki.org caused by a huge org.apache.commons.io.output.ByteArrayOutputStream (550MB) produced during the office export. It's a local variable so the memory dump does not give much information about where exactly it's used but it shows that the office export is very bad at handling files (like putting them in memory instead of using temporary files).

      For example OfficeConverter#convert return a map of files content as byte[] which is quite insane from memory point of view.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              surli Simon Urli
              Reporter:
              tmortagne Thomas Mortagne
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: