Quick answer: A jetsam termination is iOS killing your game with SIGKILL because its memory footprint crossed the limit for that device. There is no crash report and no stack, only a JetsamEvent file whose entry for your process says "reason" : "per-process-limit". Measure headroom at run time with os_proc_available_memory(), then shrink the footprint: ASTC textures, smaller render targets, streamed audio, and unloading the old level before the next one loads.

The game vanishes mid-level and the player is looking at the home screen. No dialog, nothing in your crash reporter, nothing in the crash list in Xcode Organizer, because nothing crashed: the kernel removed the process for holding too much memory. Games run into this more than other apps, since textures, render targets and decoded audio all come out of the same RAM the limit is measured against. This guide covers how to prove a termination was jetsam, how to read the report iOS leaves behind, where a game’s memory goes, the fixes in order of payoff, and how to count these kills once the game is live.

What a jetsam termination looks like

With the debugger attached, Xcode ends the session with a single line:

Message from debugger: Terminated due to memory issue

On a player’s device there is no message. The kernel sends SIGKILL, which a process cannot catch, so no signal handler runs and no crash report with thread backtraces is written. iOS writes a jetsam event report instead: a JSON file listing every process on the device and how many memory pages each one held.

"memoryStatus" : {
  "pageSize" : 16384
},
"largestProcess" : "MyGame",
"processes" : [
  {
    "uuid" : "5c1d0f6e-7b0a-3c55-9e0d-2f4f1f1f8a11",
    "states" : [ "frontmost" ],
    "lifetimeMax" : 88304,
    "rpages" : 88210,
    "reason" : "per-process-limit",
    "name" : "MyGame"
  }
]

Jetsam is the part of the kernel that frees memory by terminating processes. It acts in two situations: a process crosses its own limit, or the whole device is short of memory and something has to go. Only the first one is a bug in your game.

How to read a JetsamEvent report

On the device, open Settings > Privacy & Security > Analytics & Improvements > Analytics Data and look for files named JetsamEvent- followed by a date and time. A player can open one, tap Share and mail it to you. With the device connected to a Mac, the same logs are available from Xcode’s Devices and Simulators window. Jetsam events do not appear in the Crashes organizer.

  1. Find the entry that has a reason key. Only the process that was jettisoned has one. If that entry is not your game, this event did not kill your game, and you should look for an ordinary crash report (such as EXC_BAD_ACCESS) or a watchdog termination.
  2. Compute the footprint. Multiply rpages by pageSize. In the example, 88,210 pages of 16,384 bytes is 1,445,232,640 bytes, about 1.45 GB. That is what your game held when it was killed.
  3. Check states. frontmost means the player was looking at the game. suspended means it was in the background.
  4. Read the reason.
reasonWhat happenedYour bug?
per-process-limitThe process crossed the memory limit the system imposes on apps.Yes. Reduce the footprint.
vm-pageshortageThe device was under memory pressure and a background process was freed for the foreground app.Normal for a suspended game. A smaller footprint when backgrounded survives longer.
vnode-limitToo many files were open across the system.Rarely.
highwaterA system daemon exceeded its expected footprint.No.
fc-thrashingA process thrashed the file cache, usually by non-sequential access to memory-mapped files.Possibly, if you map large asset files and jump around in them.
jettisonedSome other reason.Unknown.

largestProcess names the process holding the most pages. If other apps keep getting killed while your game is the largest, your game is the cause of their terminations too.

How much memory your game is allowed

Apple does not publish a table of limits. The limit depends on the device model, is well below the device’s physical RAM, and, in Apple’s words, can change during the app life cycle. Any number you find in a forum post is a measurement on one device and one iOS version.

Ask the system instead. os_proc_available_memory(), declared in <os/proc.h> and available since iOS 13, returns the number of bytes the app may still allocate before it hits its limit (the current limit minus the current footprint). It is cheap enough to call every few seconds. From Unity, a small native plugin exposes it:

// Assets/Plugins/iOS/AvailableMemory.mm
#include <os/proc.h>

extern "C" unsigned long long GameAvailableMemory(void) {
    if (@available(iOS 13.0, *)) {
        return (unsigned long long)os_proc_available_memory();
    }
    return 0;
}
// C#
#if UNITY_IOS && !UNITY_EDITOR
[System.Runtime.InteropServices.DllImport("__Internal")]
static extern ulong GameAvailableMemory();
#endif

Log the value at the main menu, after the largest level has loaded, and at the worst moment of a level transition, on the lowest-RAM device you support. The smallest number you see is your real margin. Treat the value as advisory and do not cache it. (Android has no equivalent call and a different killer; see the low-memory Android guide.)

The Increased Memory Limit capability adds the entitlement com.apple.developer.kernel.increased-memory-limit (iOS 15 and later). It tells the system that core features may perform better above the default limit on supported devices. Apple says the increase is only available on some device models and does not list them, and the game must still behave correctly without it, so do not expect it to rescue the low-RAM devices in your supported list. Compare os_proc_available_memory() with and without it on each test device. The separate Extended Virtual Addressing entitlement enlarges the address space, which helps when you memory-map large files; it does not raise the footprint limit.

What counts toward the footprint

Clean memory does not count: the read-only code of your executable and frameworks, and memory-mapped files you only read. The system can drop those pages and reload them from disk. Reading asset data through a read-only mapping is therefore far cheaper than copying the same file into a heap buffer.

Where the memory goes in a game

  1. Uncompressed or oversized textures. A 2048×2048 RGBA32 texture is 16 MB, about 21 MB with mipmaps. The same texture in ASTC 6×6 is roughly 2.5 MB with mipmaps. A texture with CPU read access left on (Read/Write in Unity) keeps a second copy.
  2. Render targets at native resolution. A 12.9-inch iPad Pro renders 2732×2048. One RGBA16F target at that size is about 45 MB, and a post-processing chain holds several, plus depth, plus MSAA samples.
  3. Audio decoded into memory. Three minutes of 44.1 kHz stereo 16-bit music is about 32 MB as PCM, whatever the compressed file size was.
  4. Loading spikes. During a transition the old level and the new one are both resident, together with decompression buffers. The peak, not the steady state, is what gets you killed.
  5. Leaks across scene loads. A static list, an event subscription or a persistent singleton holding a reference to a texture keeps the whole asset alive. The footprint steps up with every level and never comes back down.
  6. Ad and web content. Video ads and playable ads allocate inside your process through the ad SDK’s native code. WKWebView content runs in a separate WebKit process, so it is not charged to you directly, but it adds to device-wide pressure.

How to measure it

Fix 1: textures and render targets

Ship ASTC for every texture that does not need to be uncompressed, and choose the block size per texture type: 4×4 for normal maps and UI that must stay sharp, 6×6 or 8×8 for diffuse and environment textures. Turn off CPU read access unless code reads the pixels. Cap the maximum size per platform, and let texture streaming or mip stripping drop the top mip on low-RAM devices. See how to detect texture memory leaks for finding the ones that never unload.

Render 3D below native resolution on high-DPI devices and keep UI at native. In Unity that is the URP Render Scale or Screen.SetResolution; in Unreal, r.MobileContentScaleFactor; in Godot 4, the viewport’s 3D scaling. Release temporary render targets when a screen closes.

Fix 2: audio

Stream music and long ambience from disk. Keep short, frequently played effects compressed in memory and decode only the handful where latency matters. In Unity these are the Streaming, Compressed In Memory and Decompress On Load load types on each AudioClip; the default for an imported clip is the expensive one.

Fix 3: loading peaks and leaks

Unload first, then load. Go through a small empty scene, release the old level’s assets (Resources.UnloadUnusedAssets() and Addressables handles in Unity, a garbage collection pass in Unreal), and only then start the next load. If the footprint after returning to the main menu is higher than it was at first launch, something is still referenced. Take a memory snapshot at both points and compare.

Fix 4: respond to memory warnings

iOS warns before it kills, when it has time to. UIKit calls applicationDidReceiveMemoryWarning and posts UIApplication.didReceiveMemoryWarningNotification. Engines forward it:

// Unity
void OnEnable()  { Application.lowMemory += OnLowMemory; }
void OnDisable() { Application.lowMemory -= OnLowMemory; }

void OnLowMemory()
{
    iconCache.Clear();
    Resources.UnloadUnusedAssets();
}
# Godot 4
func _notification(what: int) -> void:
    if what == NOTIFICATION_OS_MEMORY_WARNING:
        _icon_cache.clear()

In Unreal, bind to FCoreDelegates::ApplicationShouldUnloadResourcesDelegate, which the engine documents as called when the OS is running low on resources. Do not assume it arrives on the game thread, and confirm on a device that it fires in your engine version.

Free things you can rebuild: caches, pooled objects, the previous level’s leftovers. A warning handler is a safety net. A single large allocation can cross the limit before any warning is delivered, so it does not replace a budget.

Counting OOM kills in production

Since the process cannot report its own death, infer it on the next launch. At startup, read a flag from disk, then set it. Clear it when the game moves to the background or quits normally. If the flag is still set at the next launch, the last session ended in the foreground without a clean exit. Rule out the cases you can see (a crash your engine recorded, an app or OS update), and what remains is a memory kill, a watchdog kill or a force quit. Writing the last os_proc_available_memory() value next to the flag separates the first from the others.

MetricKit gives exact counts without guesswork. Register a subscriber with MXMetricManager.shared.add(_:) and read MXAppExitMetric (iOS 14 and later) from the daily MXMetricPayload:

func didReceive(_ payloads: [MXMetricPayload]) {
    for payload in payloads {
        guard let exits = payload.applicationExitMetrics else { continue }
        let oom = exits.foregroundExitData.cumulativeMemoryResourceLimitExitCount
        let pressure = exits.backgroundExitData.cumulativeMemoryPressureExitCount
        let watchdog = exits.foregroundExitData.cumulativeAppWatchdogExitCount
        // send the three numbers to your own analytics
    }
}

On iOS 27 and later the Swift MetricKit API reports the same count as ForegroundTerminationMetric.memoryLimitTerminationCount. Xcode Organizer’s Terminations report shows memory-limit terminations for App Store builds as well.

How to confirm the fix

Test on a physical device, the oldest and lowest-RAM model in your supported list, with a release build. Play a loop that visits every level twice and log os_proc_available_memory() at the same checkpoint each time. The second pass should show the same headroom as the first. Then leave the game, open the camera and a few heavy apps, and return: the game restarting from the title screen is expected when the device is under pressure, a kill while frontmost is not. Finally, check the device’s Analytics Data for a new JetsamEvent naming your game.

What Bugnet can and cannot see here

Bugnet does not capture out-of-memory kills. The process is gone before any SDK could run, and that is true of every in-process tool. What it does record is the evidence around the kill. A session that jetsam kills never reports its end, so the crash-free session rate does not count it as crashed. You make the kills visible yourself: the Unity SDK files a Debug.LogError as a report with the OS version, GPU and RAM attached, so logging an error from your Application.lowMemory handler, or at launch when your unclean-exit flag is set, turns memory warnings and suspected kills into one grouped entry with an occurrence count. Player-written reports (“it closes on level 4”) carry the same device details. See getting started for setup.

Frequently asked questions

Why is there no crash report when iOS kills my game for using too much memory?

The kernel terminates the process with SIGKILL, which cannot be caught, so no crash handler runs and no backtrace is recorded. iOS writes a JetsamEvent report instead, found under Settings, Privacy and Security, Analytics and Improvements, Analytics Data. It lists memory pages per process but no stack.

What is the memory limit for an iOS app?

Apple does not publish it. The limit depends on the device model, is lower than the physical RAM, and can change while the app runs. Call os_proc_available_memory, available since iOS 13, to read how many bytes your game can still allocate on the device it is running on.

What does per-process-limit mean in a JetsamEvent report?

It means the process with that reason crossed the memory limit the system applies to apps and was terminated for it. Multiply its rpages value by the pageSize in the report header to get the footprint in bytes at the moment it was killed.

Does the Increased Memory Limit entitlement stop out-of-memory terminations?

Only partly. The entitlement com.apple.developer.kernel.increased-memory-limit, for iOS 15 and later, raises the limit on some device models. Apple does not list which, and the game must still work where the extra memory is not available. Treat it as extra headroom and reduce the footprint first.

Do Metal textures count toward the iOS memory limit?

Yes. iPhones and iPads use unified memory, so textures, buffers and render targets are charged to your process like any other dirty memory. Instruments shows Metal resources under VM: IOAccelerator and drawables under VM: IOSurface.

The number that matters is the peak during a level transition on your lowest-RAM device, not the steady state on your own phone. Log os_proc_available_memory there and budget from that.