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

Parallel: Parallel GC throws OOM before heap is fully expanded

XMLWordPrintable

    • gc
    • b16
    • Fix failed

        Run attached test case with following command line:
        -Xmx2G -XX:+UseParallelGC -XX:NativeMemoryTracking=summary -XX:+UnlockDiagnosticVMOptions -XX:+PrintNMTStatistics gc

        After test is terminated with OOM, NMT statistics shows:

        - Java Heap (reserved=2147483648, committed=1541406720)
                                    (mmap: reserved=2147483648, committed=1541406720, peak=2147483648)
         

        The heap has not yet fully expanded.

              zgu Zhengyu Gu
              zgu Zhengyu Gu
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: