![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
|
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! |
#2
| |||
| |||
|
|
I think this question comes down to when, if ever, does the managed heap get reduced in size and the memory deallocated and returned to the OS. I don't know the answer, but experience suggests that the answer is "hardly ever". |
#3
| |||
| |||
|
|
"Phil Wilson" <phil.wilson (AT) wonderware (DOT) something.com> wrote I think this question comes down to when, if ever, does the managed heap get reduced in size and the memory deallocated and returned to the OS. I don't know the answer, but experience suggests that the answer is "hardly ever". I'm not sure about the actual heap size, but we frequently see the Working Set size (as reported by Task Manager) be reduced. If I go through the excersize in our XMPP server to Log in 10,000 users I'll see the memory on the server jump up to 320 megs or so. When I log the users out, the memory goes down a fair bit. -- Chris Mullins, MCSD.NET, MCPD:Enterprise, MVP C# http://www.coversant.net/blogs/cmullins |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |