Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-12220

ZipFiles.zipDirectory leaks native JVM memory

Details

    Description

      Noticed this in a long-running JVM process starting multiple Dataflow pipelines. Heap usage slowly rose as observed by jcmd <pid> VM.native_memory summary.diff, but a heap dump did not show a consistent amount of usage.

      Followed this guide for identify native memory leaks, which pointed me to java.util.ZipFile.

      We use it in runners.core-construction.PipelineResources via sdk.util.ZipFiles

      Closing the ZipOutputStream here seems to alleviate the issue.

      Attachments

        Activity

          People

            bhulette Brian Hulette
            bhulette Brian Hulette
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 20m
                1h 20m