Application Domain

  • Thread starter Thread starter Just D.
  • Start date Start date
J

Just D.

All,

How many Application Domains can be created on machine? If there is any
limit? Memory? Some system limitation or what?

Just D>
 
Just D.

There is no hard upper limit on the number of application domains that
you can have (that I know of). Of course, you are limited by the memory
that exists on the machine (there is some overhead for each app domain, of
course).

However, you are very unlikely to hit that limit, and if you have *that*
many app domains in your process, then something is definitely amiss.

Hope this helps.
 
Hi Nicholas
There is no hard upper limit on the number of application domains that
you can have (that I know of). Of course, you are limited by the memory

Maybe you're right. But the operating system uses many IDs for processes,
threads, handles, opened file for a process, etc. and I'm afraid that some
of these IDs can be over the physical limit. For example if we open too many
IEs then we can get a problem because some of IEs are not able anymnore to
save files, etc. So, actually the real limit is much more reachable than it
should be. And the real problem is not in the memory. I'm having 1 gig plus
over 1 gig swap file expandable up to few gigs. But I can't run as many IEs
as I want, and not only IE. I remember that few years ago I was able to get
a GDI overflow problem or like that, and I'm strongly suggesting that the
system is having some predefined limits for each variable type. One more
issue - if you start IIS session you should know what operating system holds
this IIS server, because the limits are hardcoded into the system, beginning
from 100 sessions for Professional and few thousands for Server, Advanced
Server, etc.

What, is it easier to answer this question now?-)

Just D.
 
Well, application domains are completely unknown to the OS so there can
hardly be a limit on that level.
An application domain is a CLR managed security context (some will call it a
light weight process), the number of AD per process is limitted by the CLR
itself (don't know the exact number) but before you reach that level you
will certainly have exhausted other system wide resources like memory .
Willy.
 
Back
Top