Memory Management Articles

Android 16 KB Page Size Migration: ELF Alignment, NDK Builds, and Performance

Android 15 and Google Play are moving toward 16 KB pages. This guide explains ELF segment alignment, linker behavior, NDK build changes, TLB validation, and CI gates.

Android Process Survival and Resource Scheduling: OOM Adj to LMK

A system-level look at Android OOM Adj scoring, LMK and lmkd evolution, cgroup memory isolation, foreground services, expedited WorkManager jobs, and memory self-monitoring.

Android On-device AI System Health: Dynamic Inference Degradation by Thermal, Battery, and Memory Pressure

A practical three-dimensional degradation strategy for Android on-device AI inference, coordinating thermal status, battery state, and memory pressure with normalized scoring, model preloading, and state migration.

Android Memory Leak Governance: LeakCanary, HPROF, and Production Monitoring

A full Android memory leak governance workflow covering LeakCanary's WeakReference sentinel, HPROF reference-chain analysis, production retained-object monitoring, conditional dumps, and CI gates.

Android App Memory Management: Understanding Dalvik VM Parameters

A practical guide to Android app memory limits, Dalvik heap parameters, largeHeap, and ADB commands for inspecting memory usage.

Inside Android ART Garbage Collection

A practical look at ART garbage collection, from Dalvik mark-sweep to CMS, Concurrent Copying, generational GC, allocation storms, LOS behavior, and startup tuning.

ART Runtime and Advanced Memory Management (1): Foundations

Part 1 of ART Runtime and Advanced Memory Management: why ART, GC, and memory strategy are foundations for Android performance and stability.

ART Runtime and Advanced Memory Management (2): ART GC

Part 2 of ART Runtime and Advanced Memory Management: a deep look at ART heap structure, GC algorithms, pauses, barriers, and GC logs.

ART Runtime and Advanced Memory Management (3): Diagnosis

Part 3 of ART Runtime and Advanced Memory Management: diagnosing leaks, churn, fragmentation, Bitmap memory, OOM, and memory tools.

ART Runtime and Advanced Memory Management (4): Native Memory

Part 4 of ART Runtime and Advanced Memory Management: native memory sources, detection tools, optimization strategies, and memory discipline.

ART Runtime and Advanced Memory Management Strategies

A deep Android memory-management guide covering ART compilation, garbage collection, memory leaks, OOM, MAT, Perfetto, native memory tools, Bitmap optimization, and advanced strategies.