Re: Question in .Net memory management.

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


Date: Tue, 16 Mar 2004 12:25:28 +0100

Note that the working set of a managed application is larger than a native
windows application. However, it looks like your application uses a lot of
"unmanaged" memory (Win32 heaps and other data), are you calling into
unmanaged code using PInvoke, COM?
What kind of application is it?

Willy.

"Hadi" <hadi@hadi.net> wrote in message
news:%23b9vkHzCEHA.3256@TK2MSFTNGP09.phx.gbl...
> Hello,
>
> My application is now currently sitting at 100Mb, at least that is how the
> Windows Task Manager reported. I am in the process of reducing the RAM
> requirement. I downloaded anumber of .Net memory profiler but I am
> surprised
> that according to those profiler the HEAP is only 1.3-1.5Mb? Where does
> the
> rest of memory come from? This is a mystery to me.
>
> Also, using the .Net Memory Profiler from scitech, it reported that the
> Heap
> is 1.3 Mb .. but curiously there is this tab showing the 'Native Memory'
> which is a lot closer to what the Windows Task Manager reported. Here is
> the
> breakdown of the 'Native Memory' tab:
>
> Total: 88Mb (107Mb with profiler data)
>
> - Private 56Mb
> +---- Managed heaps 2,7Mb
> +---- Code 11Mb
> +---- JIT 2Mb
> +---- Win32 Heaps 24Mb
> +---- Other data 15Mb
> - Shared 14Mb
> - Potentially shared 17Mb
>
>
> I don't really understand. Why does .Net requires so much memory? Is all
> of
> this 'overhead'? I must have missed soething huge here. Anyone?
>
> Thanks!
>
> Hadi.
>
>
>
>
>



Relevant Pages

  • Question in .Net memory management.
    ... I downloaded anumber of .Net memory profiler but I am surprised ... Also, using the .Net Memory Profiler from scitech, it reported that the Heap ... but curiously there is this tab showing the 'Native Memory' ... which is a lot closer to what the Windows Task Manager reported. ...
    (microsoft.public.dotnet.general)
  • Re: Lcc-win32 extensions to C
    ... compiled with a C++ compiler or a C compiler. ... Yes, but if you do not use GC, you allocate more memory than needed to ... Using a non-GC'ed heap+ a GC'ed heap requires also more memory... ... Collector, since GC technologies are much more advanced than simple ...
    (comp.std.c)
  • Re: Huge pages and small pages. . .
    ... you need to have them cached in the TLB; if the TLB runs out of ... >>> low end of the heap, until someone figures out a way to tell the system ... >> causing them to be COW'd to real memory. ... I believe the swapper will kill them fast once you have ...
    (Linux-Kernel)
  • Re: Help wanted - problems with heap
    ... Memory pressure, because of limited heap size. ... identified that by failures to allocate memory. ... Any pointers as to work out what is happening would be welcome. ...
    (rec.games.roguelike.development)
  • Re: ASP.NET WP memory consumption problem & debugging on AppDomain bas
    ... Downloading Large Files Causes a Large Memory Loss and Causes the ... > Bytes in Loader Heap 46673920.000 ... > Promoted Finalization-Memory from Gen 1 0.000 ... > Working Set 648499200.000 ...
    (microsoft.public.dotnet.framework.aspnet)