Meta Aug 24, 2015

Reducing FOOMs in the Facebook iOS app

Article Summary

Meta's iOS team faced a silent killer: crashes that left no trace, no stack trace, no clue. Just frustrated users and a mystery to solve.

Facebook's engineering team documented how they identified and reduced FOOMs (foreground out-of-memory events) in their iOS app. These crashes are invisible to traditional crash reporting because iOS simply terminates the app when memory runs out, leaving developers blind to the problem.

Key Takeaways

Critical Insight

Systematic measurement and targeted fixes (WebView migration, allocation pattern changes) significantly decreased OOMs and user-reported crashes.

The method swizzling technique they used to build an in-app profiler reveals how deep they went to catch memory leaks.

Recent from Meta

Related Articles