• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Losing memory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Losing memory


  • Subject: Re: Losing memory
  • From: Fritz Anderson <email@hidden>
  • Date: Mon, 28 May 2012 08:00:15 -0500

On 27 May 2012, at 9:20 PM, Charlie Dickman wrote:

> My application is using (leaking) too much memory and eventually dies because no more can be allocated. I have used Instruments to measure the usage and leaks and have addressed those it told me about.
>
> Now, however, Instruments indicates that memory reaches a steady state (no more increases) yet the app continues to die for lack of memory.
>
> Does anyone know of a "next step" I can take to help track down this problem?

How much memory does your allocation total plateau at?

How do you know that it's exhaustion of memory that's getting you killed?

I assume (you don't say) this is iOS, and that your problem is showing up on the device. What does the device's own log show?

Is your app in the foreground or background at the time?

Use the VM Tracker instrument and see if you're eating up memory in other zones. In my experience, your application heap (Allocations) can be stable, but if you accumulate Core Graphics/Core Animation buffers, you're in trouble pretty quickly. By default, VM Tracker snapshots the heaps only when triggered (Snapshot Now). It may be better if you check Automatic Snapshotting in the detail area for VM Tracker.

	— F


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Losing memory (From: Charlie Dickman <email@hidden>)

  • Prev by Date: Re: NSXMLParser and initWithStream
  • Next by Date: CoreData, automatic migration and sandbox problems.
  • Previous by thread: Re: Losing memory
  • Next by thread: Sandboxing. WTF?
  • Index(es):
    • Date
    • Thread