• 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: GC'd app that keeps growing and growing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GC'd app that keeps growing and growing


  • Subject: Re: GC'd app that keeps growing and growing
  • From: Marcus <email@hidden>
  • Date: Sun, 26 Jul 2009 11:53:34 +0200


On Jul 22, 2009, at 7:30 PM, Tarek Khouzam sent these bytes:

So here is my issue. I have an app that when it should have hit the limit of memory it needs to use, it keeps growing over time.

But after 12 hours or so its memory grows about 10x. So what I would like to know is where I should go from here? GC should be taking care of freeing unneeded memory. I can't use the old apps like leaks because its not valid anymore. Is there a technique or app that can show me what object is using all the memory?

Basically I am at wits end. I have tried Instruments but I have a better chance of reading Chinese then understanding what Instruments is tell me. Any help would be greatly appreciated.

The first thing you want to do is to find out what the application is allocating. MallocDebug can sometimes be useful for that as well as Instruments with the leaks template. Make sure that you are viewing the extended detail view in Instruments since it can give detailed information such as stack traces that will help you to find what memory your application is using.


The garbage collector scans the memory for garbage by following strong references from known root objects like NSApp and disposes objects which can not be found that way. It is therefore important that you remove those references to objects that your application does not need anymore so that the garbage collector can dispose them correctly.

Marcus


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >GC'd app that keeps growing and growing (From: Tarek Khouzam <email@hidden>)

  • Prev by Date: Re: Copy File Phase - how to copy an archived file
  • Next by Date: Re: Copy File Phase - how to copy an archived file
  • Previous by thread: Re: GC'd app that keeps growing and growing
  • Next by thread: PackageMaker 3.0.3 issue - can't get it to install anything.
  • Index(es):
    • Date
    • Thread