pa12
pa12

Reputation: 1503

resident memeory keeps increasing

I am having issue with memory management. I am using arc. I tried setting arrays, oulet to nil in viewdidunload and try the same in dealloc methods.

When I use instruments it does not show any thing, I tried finding resident memory using this link Programmatically retrieve memory usage on iPhone

I have two uitableviewcontrollers added as subview on view when I click on left table other table refreshes.

Each time I tap on a table and refresh the right one, the resident memory is increasing by 2MB.

I am removing all the objects but still it keeps increasing.

Does any one have an idea how to proceed. I know nothing can be told with out code. I am looking for guideline of what could be the possible culprit.

Thanks

Upvotes: 1

Views: 285

Answers (1)

justin
justin

Reputation: 104708

Use heap shot analysis.

  • 1) Go to screen
  • 2) Mark heap
  • 3) Tap and refresh table
  • 4) Mark heap
  • 5) Review Heap shot results

You may want to perform this sample or sequence a few times to understand the growth better.

Here's a great write up by bbum: http://www.friday.com/bbum/2010/10/17/when-is-a-leak-not-a-leak-using-heapshot-analysis-to-find-undesirable-memory-growth/

You might also consider reviewing your Cycles and Roots, also using the Leaks Instrument.

Upvotes: 1

Related Questions