Java Process Memory Laid Out
summary
Explains where a Java process actually uses memory (heap, JVM structures, native allocations, libraries) and why -Xmx does not limit total resident/virtual memory. Covers monitoring and tuning techniques, VM memory-management strategies and changes in recent JDKs, and shows real native-memory leak cases plus tools for analyzing native and Java allocations.
AI-written summary · about
chapters (18)
- 0:00Introduction
- 2:32Memory limits in Docker
- 4:41Analyzing process memory
- 7:19Java heap and GC
- 9:50Lazy memory allocation
- 12:50Metaspace and metadata
- 17:32Metaspace configuration
- 19:18JIT compiler memory
- 22:58Thread stack memory
- 24:49JVM internal structures
- 26:15Direct ByteBuffers
- 32:07Native memory leaks
- 35:44Profiling native memory
- 43:51Kernel memory leaks
- 47:13Swap and memory pressure
- 49:04Locking memory in RAM
- 49:45Summary and monitoring
- 50:52Q&A
