Reducing FOOMs in the Facebook iOS app
Aug 24, 2015Grzegorz Pstrucha, Ali Ansari

Summary
This post details Meta's efforts to reduce out-of-memory (OOM) crashes in the Facebook iOS app. It describes the process of identifying OOMs through logging and process-of-elimination, profiling memory usage to pinpoint issues with UIWebView, migrating to WKWebView to offload memory usage to a separate process, optimizing allocation rates, and implementing an in-app memory profiler using Objective-C method swizzling to track object allocations and detect leaks. The post highlights the importance of addressing OOMs as a blind spot in traditional crash reporting and the impact of these efforts on app reliability.
More from the Site Reliability and Outage Management trail
- Lights Out, Systems On: Validating Instant Power Loss Readiness
- DrP: Meta’s Root Cause Analysis Platform at Scale
- Zoomer: Powering AI Performance at Meta’s Scale Through Intelligent Debugging and Optimization
- Diff Risk Score: AI-driven risk-aware software development
- How Meta keeps its AI hardware reliable