Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3595776
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T19:53:49+00:00 2026-05-18T19:53:49+00:00

When running The Allocations Instrument at any given moment my iPad app has less

  • 0

When running The Allocations Instrument at any given moment my iPad app has less than 5MB of memory allocated. I’ve been very thorough and made sure everything is being released correctly. My app is a tab bar app that does load a lot of images, videos, and PDFs. I’ve made sure to handle this appropriately and empty caches, etc to free up memory.

However, when I run the Activity Monitor Instrument, with my app running on my iPad, the memory usage of my app gradually increases eventually reaching over 100MB and crashes.

I’m not really sure what to do and there isn’t a specific block of code that is causing issues. The entire app is a memory hog and I’ve never had this issue before.

Besides allocations what reasons would my app consume this much memory? Is there another tool I can use to trace what processes are using up memory?

Edit: As someone mentioned, I’ve used Build and Analyze to make sure all issues have been cleaned up.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T19:53:50+00:00Added an answer on May 18, 2026 at 7:53 pm

    Lots of times CGImages and other large media blobs do not show up on Allocations – they might show up as some small innocent looking object, but they point to some large object like an image that is allocated using ‘weird’ techniques (like memory mapped files, video card memory, etc).
    The activity monitor instrument on the other hand looks at memory used in terms of 4k pages loaded for your app, and thus includes these media blobs.

    I don’t know what your caching scheme is. Here is a scenario:
    You need to load 50 100k jpegs – the user will see only a max of 3 at once. 50 100k images is 5MB of memory. So you can load all the data for the jpegs from the internet. If you then create 50 CGImages from this data then each one will consume (assuming the jpegs are 1000×1000 * 4bytes per pix = ) 4MB of memory. So that would be 200MB to sit them all in memory. Which won’t work. So you need to keep the 100k compressed nsdata blobs around, then only create the 1 or 3 CGimages at a time that you need them. Its an art to keep things smooth and balanced.

    In other workds: in Allocations – look at the number of CGImageRefs, etc that you have at any one time, and lower that number.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to get the statistical details( memory details, object allocations etc.) , when
I believe that you can't force a running Memcached instance to de-allocate memory, short
I have problem with the way I treat the memory management in iphone..please please
Heres the problem. I have an app that is essentially an image gallery, it
After running Valgrind, the resultant log file contains a number of errors that look
I'd like to measure memory allocation data from my java application, i.e. the sum
I am trying to get a git repository up and running and installed git
In my cocos2d application I have run through it using instruments and removed all
All we know that JVM schedules the user threads in a single CPU based
I'm trying to understand why out ColdFusion 9 (JRun) server is throwing the following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.