Product Benefits Pricing Guides Docs About Contact us Try it out
Performance

PostHog iOS Out-of-Memory Termination Tracking

PostHog iOS out-of-memory termination tracking reports silent memory kills as fatal exceptions. Track OOM rate, memory pressure and release impact.

· 3 min read

Some of the worst iOS crashes never throw an exception. When an app uses too much memory, the operating system simply ends the process. No stack trace, no error callback, and nothing in your crash reports. The user sees the app vanish, and your crash-free rate stays flattering.

On 1 October 2026, PostHog’s changelog announced that its iOS SDK can now report out-of-memory terminations as fatal exceptions on the next launch. That brings a whole category of silent failures into your error data. It also means your fatal error numbers may rise after you upgrade, which is a correction rather than a regression.

Without a plan, teams either panic at the jump or miss the chance to fix the screens that quietly leak memory.

Data Points to Track

  • oom_termination_count: out-of-memory terminations per release
  • oom_rate_per_1000_sessions: terminations normalised by session volume
  • last_screen_name: the screen the user was on before the termination
  • foreground_duration_seconds: how long the app ran before it was killed
  • device_model and os_version: low-memory devices usually fail first
  • app_version and sdk_version: separates real regressions from the reporting change
  • recovered_on_next_launch flag: marks reports sent after relaunch
  • session_id: links the termination back to the session that caused it

Setup Steps

  1. Upgrade the PostHog iOS SDK to the version that includes out-of-memory reporting and confirm Error Tracking is enabled.
  2. Annotate the upgrade date on your dashboards so the step change is explained.
  3. Add app_version and device_model to every error event for like-for-like comparison.
  4. Tag out-of-memory reports with a property so you can filter them from ordinary exceptions.
  5. Build an OOM dashboard showing rate per 1,000 sessions, split by device model and screen.
  6. Alert on rate changes during staged rollouts rather than waiting for raw counts to climb.

Actionable Insights

If terminations cluster on older devices, you have a memory budget problem rather than a logic bug. Reduce image sizes, cache less in memory and release resources when screens leave the stack.

If they cluster on one screen, look for unbounded lists, large image decoding or retained view controllers. Fixing one screen often removes most of the problem.

Long foreground durations before termination suggest a slow leak. Very short ones suggest a spike during startup or a heavy operation such as media processing.

Finally, compare retention for users who hit a termination against those who did not. A sharp gap gives you a measured case for prioritising memory work over new features.

Common Pitfalls

Do not compare post-upgrade fatal numbers against older months without an annotation. The reporting change alone can double the apparent rate. Also remember that out-of-memory terminations are inferred on the next launch, so users who never reopen the app will not appear. Treat the figure as a floor rather than an exact count, and cross-check it against App Store crash reports and your own session-end events.