RE: What is the limit for memory a .NET process or AppDomain can use?



Hi Max,

..Net AppDomain or Process does not have hard-coded memory limit in
principle. So the memory limit normally lies with the underlying OS memory
manager limitation. As Arne pointed out, the modern OS uses the virtual
memory management, so all the memory usage comes from the virtual memory
space instead of physical memory. For 32bit OS, 2^32 bytes(4GB) are
available to a process. However, since the OS kernel normally uses 2GB
virtual space. There are only 2GB left for the process user-mode code. So
we may believe that the memory limit for a .Net process/AppDomain is 2GB.

Can you tell me why you want to know of the memory limitation for .Net
process/AppDomain? In .Net world, the memory is abstracted as managed
objects. The .Net developers seldom touch or deal with memory directly
unless you are using unsafe code or p/invoke COM interop. Also, in the CLR,
the .Net GC is responsible for us to free the managed objects memory and
return to managed heap.

Do you allocate memory directly for native code? If we can understand your
purpose and problem context better, we may have a better solution. Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • RE: Memory Leak
    ... managed leak or unmanaged memory leak. ... should not use the "Mem Usage" column in task manager which is misleading. ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: VIRTUAL MEMORY
    ... In task manager look at the performance tab and repost the PF Usage ... What virus was ... Hard to know if you dont know about computers I know. ... Are you using one of those memory managers which free up memory. ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: GC Handle leaks....
    ... Note that you can use many features of SOS in VS 2005, ... to check the .Net memory and related GC counters and the GC Handles for the ... The handles in Task Manager relates to operating system handles, ... It means the GCHandle doesn't permit the object to be collected. ...
    (microsoft.public.dotnet.framework.performance)
  • Re: Physical Memory
    ... Thanks for your help, John. ... As for the services just use the Windows Services Management Console to ... Remote Access Connection Manager ... gig Pentium 4 processor and apparently a half gig of available memory, ...
    (microsoft.public.windowsxp.general)
  • RE: What is the limit for memory a .NET process or AppDomain can u
    ... I agree with TAN, that there is no hardcoded memory limit, it depends on the ... RAM size and the paging memory size. ... Microsoft Online Community Support ... feel free to let my manager know what you think of the level of service ...
    (microsoft.public.dotnet.languages.csharp)

Loading