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)