with JNA https://github.com/twall/jna ByteBuffer @since 1.4 with nio ByteBuffer.allocate( size ) (not off heap) ByteBuffer.allocateDirect( size ) You can use sun.misc.Unsafe but can cause issue and not portable
from fragmentation – Need synchronization at de/allocation Fixed Size buffers allocation – Memory wasted if size not correctly configured – No fragmentation
are cached on heap, the rest off-heap (maybe overflow to disk) • Sounds like ehcache with BigMemory • Hard coded class to use : net.sf.ehcache.store.offheap.OffHeapStore • So same package class name in Apache DirectMemory (https://jira.terracotta.org/jira/browse/EHC-940) • Demo
with JNA https://github.com/twall/jna ByteBuffer @since 1.4 with nio ByteBuffer.allocate( size ) (not off heap) ByteBuffer.allocateDirect( size ) You can use sun.misc.Unsafe but can cause issue and not portable
from fragmentation – Need synchronization at de/allocation Fixed Size buffers allocation – Memory wasted if size not correctly configured – No fragmentation
are cached on heap, the rest off-heap (maybe overflow to disk) • Sounds like ehcache with BigMemory • Hard coded class to use : net.sf.ehcache.store.offheap.OffHeapStore • So same package class name in Apache DirectMemory (https://jira.terracotta.org/jira/browse/EHC-940) • Demo