HighTechTalks DotNet Forums  

Re: when will .net application free the committed memory (or VM)

Dotnet Framework (Performance) microsoft.public.dotnet.framework.performance


Discuss Re: when will .net application free the committed memory (or VM) in the Dotnet Framework (Performance) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Ignacio Machin \( .NET/ C# MVP \)
 
Posts: n/a

Default Re: when will .net application free the committed memory (or VM) - 01-04-2007 , 10:43 AM






Hi

When the process ends or when the OS needs more memory (not sure about this
though)


What problem are you having?

--
Ignacio Machin
machin AT laceupsolutions com

"Surain Shen" <looong.shin (AT) gmail (DOT) com> wrote

Quote:
It's known, that .net app alloctes a block of memory and managed itselsf
(or by GC), and when gc do collect, it may not free the committed memory
immediately.

Who'd like tell me when will it REALLY free the memory. Any reply is
highly
appreciated!





Reply With Quote
  #2  
Old   
Surain
 
Posts: n/a

Default Re: when will .net application free the committed memory (or VM) - 01-11-2007 , 12:29 AM






I had a winform app which consume much more memory than a similar app of
the competitor which looks written by VC. Compare the "VM Size" and "Mem
Usage" measure value in the task manager, my app always be twice over the
competitor's.

However, the customer ask us to try decrease the memory usage to a
reasonable range, otherwise ...

I had tried to do somethings such as releasing the reference, disposing,
and etc., as soon as posible, but it seems the memory usage only decrease a
little.

I had done google, but all the articles only describe how GC do with the
managed memory. Thus I had to look help from this news group, and hope
someone can give me some help

"Ignacio Machin \( .NET/ C# MVP \)" <machin TA laceupsolutions.com>
wrote in news:utUbJcBMHHA.2028 (AT) TK2MSFTNGP03 (DOT) phx.gbl:

Quote:
Hi

When the process ends or when the OS needs more memory (not sure
about this
though)


What problem are you having?



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.