On-heap cache vs Off-heap cache w Javie
summary
Covers Java off-heap memory (memory outside the JVM heap), explaining pros/cons and how to use ByteBuffer (direct vs non-direct, endianness), Unsafe.allocateMemory, and memory-mapped files. Compares three caching approaches—Hazelcast (on-heap), ChronicleMap (off-heap), and Redis (C-based)—with performance measurements for write/read and GC pause behavior, and includes ChronicleMap code examples.
AI-written summary · about
related talks
53mOff-Heap Caching and Working with Shared Memory
56mOff-heap Instead of Three JEPs
13mSay Goodbye to Off-heap Caches! On-heap Caches Using Memory-Mapped I/O
01h 01mWorking with Memory Outside the Java Heap: Is There a Future for ByteBuffer(s)?
50mLet's talk about the cache!
01h 01mNative Code, Off-Heap Data and Java
02h 39mMemory API: Patterns, Uses Cases, and Performance
49mTrash Talk - Exploring the memory management in the JVM
