~/talk

Memory footprint in large scale Android projects

Talkat AndroidMakers by droidcon 2024 · on Friday, 2024-04-26· at 14:20· [developer-experience]
slides:none on file

Shows concrete fixes and measurements rather than theory and promises: Gradle and Kotlin compile daemons run as JVMs and need explicit XMX tuning so builds stop spending 3–30 seconds in garbage collection, example 4 GB→2 GB causing stalls; unit tests run in separate Gradle workers each default ~250 MB so set per‑module XMX (example 700 MB→300 MB); a heap dump finds a Mockito leak solved by its clear API heap dump + fix removed the extra memory and restored tests; JVM crashes happen when summed heaps plus non‑heap exceed physical RAM so tune totals, IDE, emulator VM heap and consider 64 GB or cloud IDEs.

AI-written summary · about

  1. 0:00Introduction
  2. 1:08Memory footprint matters
  3. 7:06JVM memory allocation tools
  4. 13:26Gradle daemon GC
  5. 23:43Unit test memory issues
  6. 30:23Debugging leaks with heap dumps
  7. 34:20Non-heap memory crashes
  8. 37:56IDE memory config
  9. 40:01Avoid duplicate daemons
  10. 40:43UI test emulator settings
  11. 41:24LeakCanary detection
  12. 41:45Holistic memory view
  13. 42:29Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.