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.
logan1337
0

Comments

1 comment

  • Brian Donahue
    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.
    Brian Donahue
    0

Add comment

Please sign in to leave a comment.