link:
http://www.javamex.com/tutorials/io/nio_buffer_direct.shtml

summary:
– direct memory is likely native (via malloc)
– wrap(byte[]) is a non-direct memory ByteBuffer
– direct ByteBuffer can’t call .array()
– VM arg -XX:MaxDirectMemory= to control size, if exceeded gives OutOfMemoryError

Advertisements