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

Allocating direct memory should not eat the heap

    XMLWordPrintable

    Details

    • Subcomponent:
      gc

      Description

      Test: gc/memory/Nio

      [2017-02-10T03:50:03.57] Allocating all the direct memory: 52428800
      [2017-02-10T03:50:03.61] ... success
      [2017-02-10T03:50:03.63] Used heap before: 35209904
      [2017-02-10T03:50:03.63] Used heap after : 81032720
      [2017-02-10T03:50:03.63] Try to dump heap to heapDump.hprof file..
      [2017-02-10T03:50:03.96] Done
      [2017-02-10T03:50:03.97] Exception in thread "main" gc.memory.Nio.Nio$Fault: Allocating direct memory should not eat the heap! Heap dumped to heapDump.hprof file.
      [2017-02-10T03:50:03.97] at gc.memory.Nio.Nio.checkHeapIsNotAffected(Nio.java:141)
      [2017-02-10T03:50:03.97] at gc.memory.Nio.Nio.run(Nio.java:55)
      [2017-02-10T03:50:03.97] at gc.memory.Nio.Nio.main(Nio.java:31)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jwilhelm Jesper Wilhelmsson
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated: