Home All Groups Group Topic Archive Search About
Author
14 Apr 2006 11:41 PM
Rob Harris
When I run my program memory usage under Task Manager's Processes tab
indicates about 9 megs. And as I do things with the program memory usage
witll top out at about 12 Megs.  However, if I minimize the program to the
taskbar, memory usage drops to about 500KB.  And, when I restore the app to
the foreground memory usage reports about 2 Megs and as I use the program
mem usage rises.  Why so variable, especially the difference in when I first
start the app and when I minimize and restore?

Author
15 Apr 2006 5:44 AM
Cor Ligthert [MVP]
Rob,

The answer on this is simple, don't look at the task manager for memory
usage with Net. The taskmanager is an idicator something the same as you
maybe have in your car,  an indicator how many miles/kilometer you can ride
with the current fuel, but that is an aprox.

This is often handled in this newsgroups. In my idea the most in depth by
Willy.

http://groups.google.com/group/microsoft.public.dotnet.general/browse_frm/thread/9090fa54298a3476/18b3648ef578f4d2?q=willy+taskmanager&rnum=9#18b3648ef578f4d2

I see that this thread becomes recursive.

I hope this helps,

Cor


Show quoteHide quote
"Rob Harris" <garb***@wildblue.net> schreef in bericht
news:uC2W$zBYGHA.1204@TK2MSFTNGP04.phx.gbl...
> When I run my program memory usage under Task Manager's Processes tab
> indicates about 9 megs. And as I do things with the program memory usage
> witll top out at about 12 Megs.  However, if I minimize the program to the
> taskbar, memory usage drops to about 500KB.  And, when I restore the app
> to the foreground memory usage reports about 2 Megs and as I use the
> program mem usage rises.  Why so variable, especially the difference in
> when I first start the app and when I minimize and restore?
>
Author
15 Apr 2006 7:03 AM
Cerebrus
This article explains it in detail:

http://www.itwriting.com/dotnetmem.php

Regards,

Cerebrus.
Author
15 Apr 2006 10:29 AM
Herfried K. Wagner [MVP]
"Rob Harris" <garb***@wildblue.net> schrieb:
> When I run my program memory usage under Task Manager's Processes tab
> indicates about 9 megs. And as I do things with the program memory usage
> witll top out at about 12 Megs.  However, if I minimize the program to the
> taskbar, memory usage drops to about 500KB.  And, when I restore the app
> to the foreground memory usage reports about 2 Megs and as I use the
> program mem usage rises.  Why so variable, especially the difference in
> when I first start the app and when I minimize and restore?

I suggest to take a look at this article:

The working set of an application is trimmed when its top-level window is
minimized
<URL:http://support.microsoft.com/?scid=kb;EN-US;293215>

In addition consider taking a look at the documentation chapters about
Garbage Collection.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>