RAM used by a dotnet exe

S

steph

Hi,
I have a VC++ 6 project I migrated to vc 7++ DOTNET.
* in a first step , I don't use Managed extension ->
memory used is 16 Mo.
* then I check "use managed extensions" in project
properties -> memory used is 58 Mo.
16 Mo for a win32 exe and 58 Mo if I just add /clr option.
Is it normal ?
thanks
 
P

Pent

All of the memory is not actually used, most is reserved (overall conditions
permitting). It's called a Process' Working Set.

http://discuss.develop.com/archives/wa.exe?A2=ind0209C&L=DOTNET-CLR&D=0&I=-3&P=1450
Quote from above post:
"Loading assemblies in to memory is a fairly expensive but transient
operation. The reason you see that minimizing the app reduced the memory
usage so much is that the memory isn't really being used. Windows trims the
working set of apps when it minimized them. That memory was briefly used
while loading all those assemblies but isn't used after that. While
disconcerting to look at in the task manager the memory usage is not going
to create a long term drain on your system. That said, this is an issue we
are trying to work hard on for future versions of the Framework"

http://groups.google.com/groups?&q=SetProcessWorkingSetSize+.net
 

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