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 6382969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:35:29+00:00 2026-05-25T02:35:29+00:00

Okay so this is my issue and I apologize if its a duplicate. I

  • 0

Okay so this is my issue and I apologize if its a duplicate. I searched but couldn’t find anything I considered relevant.

When I run instruments from xcode and begin testing my application for memory leaks or allocations my iMac eventually begins to run very very slowly.

This caused me to run activity monitor while using instruments and I notice that every second instruments is open it takes up more and more real memory. Roughly 100MB’s a sec.

It doesn’t take long for it to consume all my iMacs free memory (2gbs) and then it starts to lag.

Anyways this doesn’t occur with every application. I’ve done the same test with some application/projects I downloaded and instruments only seems to use about 250mbs of space and doesn’t dramatically increase.

Is there something obvious that I’m doing incorrectly? Any help would be appreciated.

Thanks.

  • 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-25T02:35:30+00:00Added an answer on May 25, 2026 at 2:35 am

    instruments consumes a lot of memory.

    depending on what you are recording, you may reduce its memory usage. for example, you can often specify what (or what not) to record, or lower sampling frequencies(if applicable).

    100MB/s is unusually high. can you give a more exact description of what you are recording in that time? (instruments you use, what the process you record is doing, etc).

    Xcode 3 used a lot less memory – not sure if that’s also the case for Instruments.

    You can reduce the memory usage somewhat by running the toolset as 32 bit processes.

    lastly, 2GB physical memory is nothing for Xcode + Instruments + iOS Sim. fwiw, i regularly exhaust physical memory with 8 or more GB. boo. fortunately, memory is cheap when you want 4 or 8GB.

    Update

    I tried using instruments for Allocations, Leaks and Zombies

    You can run these tests individually, if you must.

    Allocations

    By itself, allocations should not consume a ton of memory if your app is not creating a lot of allocations.

    To reduce memory with this instrument, you can disable some options you are not interested in:

    • do not record each ref count operation
    • only track active allocs
    • disable zombie detection
    • do not identify c++ objects

    Leaks

    • implies Allocations instrument only if you want history of leaks.

    Leaks detection itself can consume a lot of memory because it scans memory, basically cloning your allocations. say you have 100MB allocated – leaks will periodically pause the process, clone the memory and scan it for patterns. this could consume more memory than your app. iirc, it’s executed as a subprocess in instruments.

    Zombies

    • implies Allocations instrument.

    Zombie detection usually implies ref count recording. When debugging zombies, it’s most effective to never free them. If you do free them, you may only detect transient zombies (not sure if there’s an option for that in instruments…). Never freeing objc allocations will obviously consume more memory. Running leaks on a process will then consume more memory because your heap sizes will be larger – leaks and zombies should not be combined.

    you should be able to reduce total consumption by disabling some of these options and testing for them individually.

    Notes

    • The bleeding edge Developer Tools releases can be really shaky. If you are having problems, it helps to stick to the official releases.
    • I can run a osx unit test (primarily c/c++ apis) with allocations alone, it consumes about 1MB/s when recording. something seems wrong, but perhaps that indicates an issue in your program (many transient allocations?).
    • changing the way the data is displayed and/or the charge/focus settings can require a lot of memory. e.g. “Restore All” can require a few GB to process a large sample.
    • if 100MB/s is an accurate number, i’d file a bug. I know Instruments consumes a lot of memory, but that’s very high for recording an idle app, even with the expectation that instruments consumes a lot of memory.

    good luck

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

Sidebar

Related Questions

Okay, I think I might be over-complicating this issue but I truly am stuck.
I've searched far and wide about this issue, tried many fixes but I cannot
Okay, so I did all the research for this issue but none of the
Okay people, I'm sure someone has had this issue and can help me out.
Okay this may be a simple question but I have yet to come with
Okay this is my first WPF app and I am having a hard run
Okay, so I have an issue with an AJAX request. I currently have this
I've seen a couple posts about this issue, but so far nothing has seemed
Okay please help, I've been frustrated with this issue. I need to either set
Okay, so I've searched, and asked on the PayPal forum but no one will

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.