Crazy memory

Hi. I'm somewhat new to .NET programming, especially regarding memory management and am just curious as to why, in ANTS profiler memory mode it says the total size of live objects in my app is ~5MB, while in the task manager, it says my app is using ~50MB?!

I'd like to improve my memory efficiency but don't really know where to start.

Comments

  • Brian DonahueBrian Donahue Posts: 6,590 New member
    Hi Logan,

    Good question. ANTS is counting the size of objects on the managed heap. When you get stats from Task Manager, these include the program itself, any resources, the .NET runtime, and the rather arbitrary amount of memory that the .NET memory management grabs for your application to run in.

    You normally don't have a lot of control over these things.
Sign In or Register to comment.