Re: Garbage Collection with Weak References

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Willy Denoyette [MVP] (willy.denoyette_at_pandora.be)
Date: 02/18/04


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.



Relevant Pages

  • Re: Support of a large table
    ... >> display different parts within different controls of a vb app. ... >> One part of the XML file identifies information about processor cylces. ... >> demanding on memory. ... > Try to open it in vb with DOM first. ...
    (comp.lang.basic.visual.misc)
  • Re: Online, Offline, Disconnected applications.
    ... XML file, ... Using MSDE is the best way. ... I've looked at both the TaskVision application> and the Offline Application Block for for guidance. ... My main concern here is the scalability,> efficiency, and memory usage when the application is running. ...
    (microsoft.public.dotnet.framework.adonet)
  • How2 Flush to Disk DataSet.WriteXML(FileName,XMLWriteMode.WriteSch
    ... A user session consists of long transactions where data is ... wrong with the client machine or application the memory data is lost. ... the XML file is there. ... But if I CTL+AlT-Del and say end task from the task manager, ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: remoting object access information from local xml file frequen
    ... it is efficient in using memory .. ... will it hold data in IIS memory automatically after retreiving from the ... > I would do is create a class that loads the xml file settings into the ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: XmlDataDocumentDataSet Memory Footprint, Feedback appreciated.
    ... I suggest you use a memory profiler to track where your memory is consumed. ... > size of the xml file would be greatly appreciated. ... > namespace DataExtract ...
    (microsoft.public.dotnet.languages.csharp)