Custom loading .NET AppDomains inside a process - what's the addressable memory for each appdomain?

StackOverflow https://stackoverflow.com/questions/19915578

  •  30-07-2022
  •  | 
  •  

Question

I have a process that uses AppDomain.CreateDomain() to spin up and then down new application domains inside my worker process.

What is the maximum addressable memory for each of the AppDomains on a 32-bit OS? Is it 2gb or do all of the AppDomains share the 2gb limit of the host process?

Was it helpful?

Solution

There's only one GC heap, all AppDomains allocate from it. So there's no fixed maximum size for each, the sum of all allocations can never exceed the address space limit.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top