Click here to Skip to main content
15,911,762 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Running other Applications (exe) Pin
Jun Du22-Aug-06 12:44
Jun Du22-Aug-06 12:44 
QuestionASP .NET Datagrid SQL SELECT Parameter Problem Pin
Soot21-Aug-06 9:57
Soot21-Aug-06 9:57 
QuestionLarge Heap Doesn't Compact? Pin
BarV21-Aug-06 8:28
BarV21-Aug-06 8:28 
AnswerRe: Large Heap Doesn't Compact? Pin
Dave Kreskowiak21-Aug-06 8:44
mveDave Kreskowiak21-Aug-06 8:44 
GeneralRe: Large Heap Doesn't Compact? Pin
BarV21-Aug-06 8:58
BarV21-Aug-06 8:58 
AnswerRe: Large Heap Doesn't Compact? Pin
Guffa21-Aug-06 8:47
Guffa21-Aug-06 8:47 
GeneralRe: Large Heap Doesn't Compact? Pin
BarV21-Aug-06 8:59
BarV21-Aug-06 8:59 
GeneralRe: Large Heap Doesn't Compact? [modified] Pin
Dave Kreskowiak21-Aug-06 9:19
mveDave Kreskowiak21-Aug-06 9:19 
No, it's not. Moving large blocks of memory around can take an eternity, so there is no compaction, or defragmentation as your calling it. The hole remains where it was created. But the CLR is smart enough to fill that hole with whatever it can, whenever it can. The memory is not "just wasted".

The memory stays allocated as far as an unmanaged view of the memory goes. Which is what you saw when you used the Process' Private Bytes counter. The memory is not used by your application, as far as Windows is concerned, it is. This is because the memory is reserved by the CLR in the Managed Heap. You MUST used the .NET CLR performance object counters if you want to see how much memory your app is REALLY using. What you're looking at, when using the Private Bytes counter, is the memory reserved for your application (allocated by your app or not) by the .NET CLR virtual machine your app is running in.



-- modified at 15:20 Monday 21st August, 2006

Dave Kreskowiak
Microsoft MVP - Visual Basic


GeneralRe: Large Heap Doesn't Compact? Pin
BarV21-Aug-06 9:33
BarV21-Aug-06 9:33 
GeneralRe: Large Heap Doesn't Compact? Pin
Dan Neely21-Aug-06 9:38
Dan Neely21-Aug-06 9:38 
GeneralRe: Large Heap Doesn't Compact? Pin
Dave Kreskowiak21-Aug-06 9:57
mveDave Kreskowiak21-Aug-06 9:57 
GeneralRe: Large Heap Doesn't Compact? Pin
Dan Neely21-Aug-06 10:05
Dan Neely21-Aug-06 10:05 
GeneralRe: Large Heap Doesn't Compact? Pin
Dave Kreskowiak21-Aug-06 10:28
mveDave Kreskowiak21-Aug-06 10:28 
Question.net odbc provider Pin
Rothco21-Aug-06 6:41
Rothco21-Aug-06 6:41 
AnswerRe: .net odbc provider Pin
Dave Kreskowiak21-Aug-06 8:00
mveDave Kreskowiak21-Aug-06 8:00 
GeneralRe: .net odbc provider Pin
Rothco21-Aug-06 8:06
Rothco21-Aug-06 8:06 
QuestionProcess Killer Pin
DanB198321-Aug-06 6:19
DanB198321-Aug-06 6:19 
AnswerRe: Process Killer Pin
Dave Kreskowiak21-Aug-06 7:49
mveDave Kreskowiak21-Aug-06 7:49 
GeneralRe: Process Killer Pin
DanB198321-Aug-06 23:01
DanB198321-Aug-06 23:01 
QuestionGet contents from "RichEdit20W" class Pin
priyank_ldce21-Aug-06 0:47
priyank_ldce21-Aug-06 0:47 
QuestionTo run application written in .Net VC++ 2005 Pin
Andy Rama20-Aug-06 23:19
Andy Rama20-Aug-06 23:19 
AnswerRe: To run application written in .Net VC++ 2005 Pin
Keith Malwitz21-Aug-06 2:15
Keith Malwitz21-Aug-06 2:15 
AnswerRe: To run application written in .Net VC++ 2005 Pin
Jun Du21-Aug-06 5:12
Jun Du21-Aug-06 5:12 
QuestionCOFF Format ? Pin
S Pandian20-Aug-06 20:58
S Pandian20-Aug-06 20:58 
AnswerRe: COFF Format ? Pin
Guffa20-Aug-06 21:51
Guffa20-Aug-06 21:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.