Tuesday, September 17, 2013

JAVA: ByteBuffer.Allocate vs AllocateDirect

Allocation on heap, GC involved.
image

the process used 2G RAM
image

the buffer is one the HEAP Old space,
image

If allocatedirect on RAM,

image

still 2G as a whole

image

but not on Heap,

image


so The heavily used buffer appropriately continues to use a non-heap, non-garbage-collected direct buffer.

No comments:

 
Locations of visitors to this page