Application memory usage

C

Crirus

I have an aplication (obviously :))
I look at the Task Manager, memory usage column and notice the following:

First time I start the application, I have around 55.000- 60.000 K.
After I minimise the application and restore, the Memory usage drop to
16.000K and remain around that value..
Should I be concerned with this?
 
B

Blumidoo

I have an aplication (obviously :))
I look at the Task Manager, memory usage column and notice the following:

First time I start the application, I have around 55.000- 60.000 K.
After I minimise the application and restore, the Memory usage drop to
16.000K and remain around that value..
Should I be concerned with this?

Nothing to worry about, this is how .NET Framework works.

You might want to browse through the
microsoft.public.dotnet.framework.performance archives on
Google for the big collection of posts on the topic.

sincerely,
--
Sebastian Zaklada
Skilled Software
http://www.skilledsoftware.com
************************************
SQL Source Control 2003 - for
SQL Server Source Safe integration
and custom databases documentation
 
H

Herfried K. Wagner [MVP]

* "Crirus said:
I have an aplication (obviously :))
I look at the Task Manager, memory usage column and notice the following:

First time I start the application, I have around 55.000- 60.000 K.
After I minimise the application and restore, the Memory usage drop to
16.000K and remain around that value..
Should I be concerned with this?

This behavior is not specific to .NET applications only.

It is a feature of the Windows/Explorer shell.

If an application is minimized, Windows removes the working set memory from
the application by calling the Win32 function 'SetProcessWorkingSetSize':

<http://msdn.microsoft.com/library/en-us/dllproc/base/setprocessworkingsetsize.asp>

Windows supposes that minimized applications will not be used for some time
and this memory will be made available to other processes.

When restoring the window the application gets the memory back:

<http://support.microsoft.com/?kbid=293215>

This behavior is by design and it doesn't make sense to worry about it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top