640 Kilobytes Should Be Enough for Everyone
summary
Explains how memory management works on Android, covering concepts like GC (garbage collection), SWAP, and native allocations. Compares RAM figures on phones (4–16 GB) with actual app memory behavior to show why apps still crash from out-of-memory and demystifies how the Android runtime and JVM-related mechanisms manage memory.
AI-written summary · about
chapters (27)
- 0:00Introduction
- 1:50Bill Gates quote on memory
- 3:41Memory evolution overview
- 4:26Android OOM errors
- 6:53Android memory basics
- 8:17App startup memory
- 9:46ZRAM compression in Android
- 10:51Memory killer process scoring
- 12:18Heap and stack usage
- 14:25Garbage collection basics
- 16:29GC phases and roots
- 17:56GC pauses impact
- 18:59Heap growth failures
- 20:44LeakCanary limitations
- 21:47GC triggers and symptoms
- 22:4960 FPS and frame drops
- 25:17GC overload causes
- 27:24Object pooling strategies
- 28:06Static reference leaks
- 31:16LeakCanary tool
- 33:18Real leak fixes
- 37:33Memory leak best practices
- 39:20Kotlin static class pitfalls
- 40:48Stopping handlers
- 41:31Boxing waste in generics
- 42:55Memory-efficient collections
- 43:39Q&A
