473,739 Members | 2,602 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Hi,

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

Thank you,
Max

Jun 27 '08 #1
5 12647
Max2006 wrote:
What is the limit for memory that a .NET process or AppDomain can use?
For 32 bit Windows ther eis a limit of 2 (or 3 if so configured) GB
of virtual memory (which is what .NET sees).

For 64 bit Windows the limit may not be the sky, but it is high - higher
than what you can use.

Arne
Jun 27 '08 #2
Thank you Arne for help..

Could you refer me to msdn or online resource that explain this?

Thanks again,
Max
"Arne Vajhøj" <ar**@vajhoej.d kwrote in message
news:48******** *************** @news.sunsite.d k...
Max2006 wrote:
>What is the limit for memory that a .NET process or AppDomain can use?

For 32 bit Windows ther eis a limit of 2 (or 3 if so configured) GB
of virtual memory (which is what .NET sees).

For 64 bit Windows the limit may not be the sky, but it is high - higher
than what you can use.

Arne
Jun 27 '08 #3
Max2006 wrote:
Could you refer me to msdn or online resource that explain this?
Google finds links like:

http://blogs.msdn.com/tom/archive/20...processes.aspx
http://forums.techarena.in/showthread.php?t=933856

Arne
Jun 27 '08 #4
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:
ms****@microsof t.com.
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.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/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 27 '08 #5
I agree with TAN, that there is no hardcoded memory limit, it depends on the
RAM size and the paging memory size.

--
Regards,
Mudassar Hassan
Software Engineer
http://mudassarhassan.spaces.live.com/
""Jeffrey Tan[MSFT]"" wrote:
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:
ms****@microsof t.com.
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.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/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 27 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4499
by: Tony Van | last post by:
I think I know what it is-- objects not being set to nothing when the program is finished with them How can I tell if I have it? How can I code to avoid it? Thanks
0
2721
by: ArBee | last post by:
I have seen this running on my Windows 2003 installation of DB2 Connect v8 EE. I have searched throughout IBM's site and get no hits. Can anyone give me a clue as to what it is for?
18
2263
by: Ramasubbu Ramasubramanian XR (AS/EAB) | last post by:
What is memory leakage, could any one explain with sample code
5
7011
by: bull | last post by:
hi could any one explain with example the following in a better way to understand 1. what is stack in memory, how the programs are stored in stack , what is the use of stack 2. What is heap in memory, how the programs are stored in heap , what is the use of heap 3. what is pool memory otherwise memory pool, what is the use of memory pool 4. what is difference between stack and heap
2
4741
by: SMichal | last post by:
Hi, I'm starting from my application simple bat data...test.bat. This file (test.bat) should start another aplication app.exe. I'm starting the test.bat from my application with Start() method of Process class. With proc.WaitForExit I'm waiting for end of the process and I must check the return code of process that I've started...this job does proc.ExitCode. I'm alway dealing with returnCode = 255 but I'm pretty sure that the
2
12367
by: Ajayshankar | last post by:
Hi what is memory padding in C ?
2
2306
by: okonita | last post by:
Instance DB2 and database MYDB2 already exist. I want to add/catalog another database within the DB2 instance. What are the steps to do this? What information do I need to successfully complete this? Any and all recommendation will be highly appreciated Thanks
1
1900
by: michaelpyles | last post by:
IIS6 (x86) - Classic ASP application - I am downloading files via calls to BinaryWrite from a C++ COM component. The ASP DLL doesn't seem to do a good job limiting memory usage based on the bandwidth and latency of the network. When streaming very large files, memory usage approaches to 2GB limit and sometimes results in out-of-memory errors. I'm considering writing my own throttle in my C++ component that polls private bytes. The only...
2
2044
by: aimthiaz | last post by:
memory management operators
1
1392
by: FARAZ AZAM | last post by:
Actually I am working on the project for implementation of fingerprinting analysis I am able to read the headers and pixels data present and after putting algorithms for segmentation and edge detection and thinning techniques using image processing technique in C but after applying all these techniques how to get back the image I am unable to create BMP image with the use of pixels and headers someone plz help
0
8969
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8792
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9479
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9337
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9266
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9209
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8215
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4826
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.