Search code examples
iosiphonememory-managementmemory-pressure

Terminated due to Memory Pressure with less then 15MB used


I'm facing a strange problem, the app I'm working on it's constantly killed due to Memory Pressure but it's not really using much as you can see in the screenshoot.
So I'm started to look for "other" issues like memory leaks, implicit casting, but I don't really know how to debug this kind of things, so... does anyone know how to get out of this problem ? :)

enter image description here


Solution

  • Typically termination due to memory pressure occurs when the app is suspended by the iOS itself. It happens when your device doesn't have a lot of free memory and it is often a good sign (meaning that this will happen to your app sooner or later when the user closes it).

    I would offer you to use Instruments and to find where exactly does your app terminate (if this is the case). The good Instruments tutorial can be found here - http://www.raywenderlich.com/23037/how-to-use-instruments-in-xcode