GC/Memory question

U

Urs Vogel

Hi

When monitoring my application in the task manager (XP SP2), it shows up to
50MB of memory usage, very rarely reducing its size. When checking the
memory with GC.GetTotalMemory(false) prior to GC.Collect(GC.MaxGeneration),
it shows me some 10MB of memory usage, and after the GC.Collect, it shows me
some 2MB of memory usage. But this reduction is not reflected by the task
manager.

How should I interpret the memory consumption reported by the task manager,
or the values returned by GC.GetTotalMemory()?
Is GC-freed memory not freed for the system?

Thanks, Urs
 
C

Cor Ligthert

Urs,

There was once one poster in this newsgroup who used the method to get the
memory in taskmanager down.

I found that he had a reasonable explanation why he used it.

He said. "I know that it does nothing but now my system administrator is not
complaining anymore"

:)

Cor
 

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