Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8327645

Serial heap dump should not consume double amount of disk space

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 22
    • hotspot
    • svc

      After JDK-8321565, when dumping the heap in serial (e.g. via -parallel=1 option for jcmd GC.heap_dump), heap dumper creates two files (e.g. foo.hprof and foo.hprof.p0), then merges the two files at a later time.

      This consumes almost double the size of the heap dump, as the disk needs to keep both files alive during merging. This also presents a challenge for systems with limited disk space and require doing serial heap dump to a network socket.

      Thus, we should make the heap dumper write to a single file in serial dump mode.

            manc Man Cao
            manc Man Cao
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: