getsentry / getsentry/sentry-cocoa

Use memory pressure info for watchdog terminations

Open
#3,890 0 comments 0 reactions 0 assignees View on GitHub
Cocoa Errors Feature
Dominant language
Swift
Stars
1.1k
Forks
418
Avg merge
2d 3h
Merged PRs (30d)
106

Description

### Description

As described in https://github.com/getsentry/sentry-cocoa/issues/2514 and https://github.com/getsentry/sentry-cocoa/pull/3870, we could potentially use the dispatch queue's memory pressure information to report watchdog terminations as OOMs. However, we still need to determine how reliable this information is. It's highly likely that it won't work for big increments in memory consumption, for which the watchdog quickly kills the app process, and the app has no time to receive memory pressure information. It could be that this information is useful for OOMs that slowly creep in and eat up the memory. Anyways, if we report OOMs, we need to be sure that there is one; otherwise, it will be confusing to users. Another option is to somehow identify watchdog termination events with high memory pressure in Sentry. Adding breadcrumbs isn't enough because they aren't searchable/filterable in the product.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.