Re: IIS memory issue

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Pat [MSFT] (patfilot_at_online.microsoft.com)
Date: 12/18/04


Date: Fri, 17 Dec 2004 18:10:07 -0800

Virtual Memory Allocated refers to the 2GB virtual memory map. So, when you
load a dll (i.e. instantiate a COM object for the first time), this value
will increase. If a Heap segment is extended, it will increase, etc.

Private Bytes is memory that is allocated by the process and is a subset of
the virtual memory allocated counter. When it is allocated/freed is
entirely dependent on how the application is denied. If you are using .Net,
then GC will be a factor. If you create a lot of long-lived data structures
(i.e. cache) then you will see it go up at first, then level off. On ASP,
for example:

<%
myStr = "This is a test" <--Memory allocated
Response.Write myStr <--Memory in the Response buffer is allocated
Response.Flush <--Memory in the response buffer is freed
%>

Page is done, memory used for myStr is freed.

Pat

"lan" <lan@online.microsoft.com> wrote in message
news:OKfNktG5EHA.3124@TK2MSFTNGP11.phx.gbl...
> Running win2003 server. The private bytes of w3wp slightly increased, but
> virtual bytes of w3wp is stable. How does IIS handle memory allocation?
> Once a request is finished, will IIS mark those allocated memory as
> free(not referenced)? and waiting GC to collect?
>



Relevant Pages

  • Re: GC performance - GC fragility
    ... Though the GC heap will look like one before compaction. ... Well the point you're missing here is that memory is the MM operates on virtual memory. ... Depending on the allocation scheme. ...
    (borland.public.delphi.non-technical)
  • Re: How to release heap memory that is marked as free
    ... As I said, fragmentation is a very serious problem, and one of the most serious problems ... my allocator was accused of using massive amounts of memory. ... I'm going to have to re-think the memory allocation that I'm ... process's 'working set'. ...
    (microsoft.public.vc.mfc)
  • Re: [PATCH 00/28] Swap over NFS -v16
    ... memory they can consume. ... So we need the extra (skb) ... included in the reserve? ... if the allocation had to dip into emergency reserves, ...
    (Linux-Kernel)
  • Re: Memory leak with CAsyncSocket::Create
    ... read my essay on how storage allocators work. ... Create method is consuming system memory that is not released back to ... The memory consumption is either shown as "Mem Usage" on the Task ... many levels of allocation going ...
    (microsoft.public.vc.mfc)
  • Re: OT: C++ overloading operators
    ... dynamic allocation, no matter how many "clever tricks" are used... ... though there's enough memory in the system, ... all these "flexible data types" map into CPU command ... The computing environment is completely ...
    (comp.dsp)