ByteBuffer.Allocate vs AllocateDirect
Allocation on heap, GC involved. the process used 2G RAM the buffer is one the HEAP Old space, If allocatedirect on RAM, still 2G as a whole but not on Heap, 来源: oschina 链接: https://my.oschina.net/u/857820/blog/1554872