Re: Garbage Collection with Weak References
From: Willy Denoyette [MVP] (willy.denoyette_at_pandora.be)
Date: 02/18/04
- Next message: WJ: "Re: Calling Url with form parameters in c# ?"
- Previous message: zerdna: "IDE: displaying several windows in tabs"
- In reply to: Derrick: "Re: Garbage Collection with Weak References"
- Next in thread: J.Marsch: "Re: Garbage Collection with Weak References"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 19 Feb 2004 00:29:44 +0100
"Derrick" <derrick1298@excite.com> wrote in message
news:%23CNy2Rn9DHA.1428@TK2MSFTNGP12.phx.gbl...
> Thanks for the info, I had been calling GC.Collect with 0 after reading a
> little today, still didn't help.
>
> I still don't understand why the mem usage stat in windows task manager
> drops to almost nothing when the app is minimized, and then grows
> relatively
> slowly upon maximizing and navigating data. Is that expected?
>
> I'm not running out of memory on my machine, but am worried about clients
> running on older machines with much less memory available. The dataset
> I'm
> prototyping with is one of our smaller sets, xml file about 20m. They can
> get up to 300m....
>
The OS will trim the workingset of all windows programs when minimized, this
has nothing to do with .NET.
When memory becomes scarce, the OS will also trim the WS of all processes.
>From the applications perspective, there is no need to call GC.Collect, and
reducing the WS of an active process is also a bad idea, as it often results
in a page-out sequence followed by a page-in, so in short a lot of
unnecessary IO.
Now back to your xml file, if you really intend to process such large xml
files in a timely manner (that is without paging), you will have to change
your design, or you will need a lot of memory (>1GB), GC.Collect nor
reducing the WS will help you out.
Willy.
- Next message: WJ: "Re: Calling Url with form parameters in c# ?"
- Previous message: zerdna: "IDE: displaying several windows in tabs"
- In reply to: Derrick: "Re: Garbage Collection with Weak References"
- Next in thread: J.Marsch: "Re: Garbage Collection with Weak References"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|