Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-2058

Memory Leak in Tika version 1.13 when parsing millions of files

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.13
    • Fix Version/s: 2.0, 1.14
    • Component/s: None
    • Labels:
      None

      Description

      We have an application using Tika which parses roughly 7,000,000 files of different types, many of the files are MSG files with attachments. This works correctly with Tika 1.9, and has been in production for over a year, with parsing runs taking place every few weeks. The same application runs into insufficient memory problems (java heap) when using Tika 1.13.

      I have used lsof and file leak detector to track down open files, however neither shows any open files when the application is running. I did find an issue with open files https://issues.apache.org/jira/browse/TIKA-2015, however there was a workaround for this and this is not the issue.

      I am sorry to have to report this with a level of vagueness, but with lsof turning nothing up I am a bit stuck as to how to investigate further. We are more than willing to help by testing on the basis of any ideas provided.

        Attachments

        1. Yourkit screenshot.png
          313 kB
          Luis Filipe Nassif
        2. screenshot-3.png
          334 kB
          Luis Filipe Nassif
        3. screenshot-2.png
          371 kB
          Luis Filipe Nassif
        4. screenshot-1.png
          362 kB
          Luis Filipe Nassif
        5. prevents-OOM-when-writable-is-false.patch
          0.8 kB
          Luis Filipe Nassif
        6. poi-3.15-beta1-p1.pom
          3 kB
          Tim Allison
        7. poi-3.15-beta1-p1.jar
          2.42 MB
          Luis Filipe Nassif

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                comcortim Tim Barrett
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: