{Heap before GC invocations=0 (full 0): par new generation total 61440K, used 54656K [0x00000000f3800000, 0x00000000f7aa0000, 0x00000000f7aa0000) eden space 54656K, 100% used [0x00000000f3800000, 0x00000000f6d60000, 0x00000000f6d60000) from space 6784K, 0% used [0x00000000f6d60000, 0x00000000f6d60000, 0x00000000f7400000) to space 6784K, 0% used [0x00000000f7400000, 0x00000000f7400000, 0x00000000f7aa0000) concurrent mark-sweep generation total 136576K, used 0K [0x00000000f7aa0000, 0x0000000100000000, 0x0000000100000000) Metaspace used 2489K, capacity 4486K, committed 4864K, reserved 1056768K class space used 267K, capacity 386K, committed 512K, reserved 1048576K 0.774: [GC (Allocation Failure) 0.774: [ParNew: 54656K->6784K(61440K), 0.5537913 secs] 54656K->47666K(198016K), 0.5538868 secs] [Times: user=1.84 sys=0.15, real=0.55 secs] Heap after GC invocations=1 (full 0): par new generation total 61440K, used 6784K [0x00000000f3800000, 0x00000000f7aa0000, 0x00000000f7aa0000) eden space 54656K, 0% used [0x00000000f3800000, 0x00000000f3800000, 0x00000000f6d60000) from space 6784K, 100% used [0x00000000f7400000, 0x00000000f7aa0000, 0x00000000f7aa0000) to space 6784K, 0% used [0x00000000f6d60000, 0x00000000f6d60000, 0x00000000f7400000) concurrent mark-sweep generation total 136576K, used 40882K [0x00000000f7aa0000, 0x0000000100000000, 0x0000000100000000) Metaspace used 2489K, capacity 4486K, committed 4864K, reserved 1056768K class space used 267K, capacity 386K, committed 512K, reserved 1048576K } {Heap before GC invocations=1 (full 0): par new generation total 61440K, used 61440K [0x00000000f3800000, 0x00000000f7aa0000, 0x00000000f7aa0000) eden space 54656K, 100% used [0x00000000f3800000, 0x00000000f6d60000, 0x00000000f6d60000) from space 6784K, 100% used [0x00000000f7400000, 0x00000000f7aa0000, 0x00000000f7aa0000) to space 6784K, 0% used [0x00000000f6d60000, 0x00000000f6d60000, 0x00000000f7400000) concurrent mark-sweep generation total 136576K, used 40882K [0x00000000f7aa0000, 0x0000000100000000, 0x0000000100000000) Metaspace used 2492K, capacity 4486K, committed 4864K, reserved 1056768K class space used 267K, capacity 386K, committed 512K, reserved 1048576K 1.690: [GC (Allocation Failure) 1.690: [ParNew: 61440K->6784K(61440K), 0.2203642 secs] 102322K->90000K(198016K), 0.2204160 secs] [Times: user=0.80 sys=0.02, real=0.22 secs] Heap after GC invocations=2 (full 0): par new generation total 61440K, used 6784K [0x00000000f3800000, 0x00000000f7aa0000, 0x00000000f7aa0000) eden space 54656K, 0% used [0x00000000f3800000, 0x00000000f3800000, 0x00000000f6d60000) from space 6784K, 100% used [0x00000000f6d60000, 0x00000000f7400000, 0x00000000f7400000) to space 6784K, 0% used [0x00000000f7400000, 0x00000000f7400000, 0x00000000f7aa0000) concurrent mark-sweep generation total 136576K, used 83216K [0x00000000f7aa0000, 0x0000000100000000, 0x0000000100000000) Metaspace used 2492K, capacity 4486K, committed 4864K, reserved 1056768K class space used 267K, capacity 386K, committed 512K, reserved 1048576K } 1.911: [GC (CMS Initial Mark) [1 CMS-initial-mark: 83216K(136576K)] 91086K(198016K), 0.0034624 secs] [Times: user=0.01 sys=0.00, real=0.00 secs] 1.915: [CMS-concurrent-mark-start] 2.041: [CMS-concurrent-mark: 0.126/0.126 secs] [Times: user=0.30 sys=0.06, real=0.13 secs] 2.041: [CMS-concurrent-preclean-start] 2.060: [CMS-concurrent-preclean: 0.018/0.018 secs] [Times: user=0.05 sys=0.00, real=0.02 secs] 2.060: [CMS-concurrent-abortable-preclean-start] Exception in thread "main" java.lang.OutOfMemoryError: Direct buffer memory at java.nio.Bits.reserveMemory(Bits.java:693) at java.nio.DirectByteBuffer.(DirectByteBuffer.java:123) at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311) at TestDirectBuffer.main(TestDirectBuffer.java:7) Heap par new generation total 61440K, used 61440K [0x00000000f3800000, 0x00000000f7aa0000, 0x00000000f7aa0000) eden space 54656K, 100% used [0x00000000f3800000, 0x00000000f6d60000, 0x00000000f6d60000) from space 6784K, 100% used [0x00000000f6d60000, 0x00000000f7400000, 0x00000000f7400000) to space 6784K, 0% used [0x00000000f7400000, 0x00000000f7400000, 0x00000000f7aa0000) concurrent mark-sweep generation total 136576K, used 83216K [0x00000000f7aa0000, 0x0000000100000000, 0x0000000100000000) Metaspace used 2524K, capacity 4486K, committed 4864K, reserved 1056768K class space used 271K, capacity 386K, committed 512K, reserved 1048576K 3 seconds elapsed