Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-343

Native Memory Leak in Sevenz-DeflateDecoder

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.10
    • Fix Version/s: 1.11
    • Component/s: Archivers
    • Labels:
      None

      Description

      The class ...sevenz.Coders.DeflateDecoder does not close (end()) the Deflater and Inflater. This can lead to native memory issues: see https://bugs.openjdk.java.net/browse/JDK-8074108.

      In our case we create a zip archive with >100000 files. The Java heap is around 300MB (with 2GB max). The native memory is increasing to 8GB and above. Because the Java heap has no pressure - no GC is triggered, therefore the Deflaters are not collected and the native memory is not freed.

        Attachments

        1. COMPRESS-343.patch
          3 kB
          Rene Preissel

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rpreissel Rene Preissel
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: