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

Office export is using way too much memory

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 13.1-rc-1
    • 12.8
    • Office
    • Unknown
    • N/A
    • N/A

    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

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

              Dates

                Created:
                Updated:
                Resolved: