Re: virtual memory leak? in asp.net app - OutOfMemory exception
- From: "Ben Voigt [C++ MVP]" <rbv@xxxxxxxxxxxxx>
- Date: Wed, 27 Jun 2007 23:10:09 -0500
"Mike" <Mike@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:FD6946AC-9D6E-4907-8055-0B70B2E2A80F@xxxxxxxxxxxxxxxx
Hello,
I have an ASP.Net app pulling a large XML stream (50 MB) and loading into an
XmlDocument object. Doing so seems to allocate several hundred MBs of
virtual memory (Seen as "virtual bytes" in perfmon). This behavior seems to
happen in the XmlDocument.Load() method.
When the XmlDocument object goes out of scope, the application releases the
"working set" after a period of time, or immediately if I call GC.Collect(),
but the allocated "virtual bytes" remain.
Loading the same XML stream again seems to re-use the allocated virtual
memory, but loading a different XML stream allocates even more virtual
memory. Eventually the application throws an OutOfMemory exception.
Why is the app not releasing the virtual memory as it reaches is memory
limits?
How can I tell the application to release the virtual memory?
Restart the process. I don't believe the Common Language Runtime ever gives memory back to Windows.
Is there something about the XmlDocument object I should know?
Any commands in WinDbg that might help me see what is in virtual memory?
Thanks,
Mike
.
- Prev by Date: Windows Service EXE x86 + Assembly (AnyTarget)?
- Next by Date: No improvement in memory usage after using GAC and nGEN
- Previous by thread: Re: virtual memory leak? in asp.net app - OutOfMemory exception
- Next by thread: Re: virtual memory leak? in asp.net app - OutOfMemory exception
- Index(es):
Relevant Pages
|