What is App Pool and App Domain? What is the difference
between the two.

Answers were Sorted based on User's Feedback



What is App Pool and App Domain? What is the difference between the two...

Answer / nalin bhatia

IIS process is w3wp;

Every application pool in IIS use it's own process;
AppPool1 uses process 3784, AppPool2 uses process 5044
Different applications in Asp.net will use different
AppDomain;

AppTest2 and AppTest2 are in different AppDomain, but in
the same process.

What's the point to use them?

Application pool and AppDomain , both of them can provide
isolations, but use different approches. Application pool
use the process to isolate the applications which works
without .NET. But AppDomain is another isolation methods
provided by .NET.
If your server host thousands of web sites, you wont use
thousands of the application pool to isolate the web sites,
just becuase, too many processes running will kill the os.
However, sometime you need application pool. One of the
advantages for application pool is that you can config the
identity for application pool. Also you have more flexible
options to recyle the application pool. At least right now,
IIS didnt provide explicit options to recyle the appdomain.

Is This Answer Correct ?    30 Yes 4 No

What is App Pool and App Domain? What is the difference between the two...

Answer / vinodh.m

An application pool is a group of one or more URLs of
different Web applications and Web sites. Any Web directory
or virtual directory can be assigned to an application pool.
Every application within an application pool shares the same
worker process executable, W3wp.exe, the worker process that
services one application pool is separated from the worker
process that services another [Like starting MS Word and
opening many word documents]. Each separate worker process
provides a process boundary so that when an application is
assigned to one application pool, problems in other
application pools do not affect the application. This
ensures that if a worker process fails, it does not affect
the applications running in other application pools. [i.e]
for Eg., If word document is having issue it should not
logically affect your Excel Sheet isn’t it.
application domain is a mechanism (similar to a process in
an operating system) used to isolate executed software
applications from one another so that they do not affect
each other. [i.e] opening of MS WORD doesn’t affect MS EXCEL
you can open and close both the applications any time since
there is no dependency between the applications. Each
application domain has its own virtual address space which
scopes the resources for the application domain using that
address space.

Is This Answer Correct ?    15 Yes 2 No

What is App Pool and App Domain? What is the difference between the two...

Answer / murali

An application pool is a container to execute one or more
applications/virtual directories, which means for a single
application pool, one or more than one websites can be
mapped. In a application pool, more than one worker
processor can exists. if each website in application pool is
mapped to individual worker process, and if any issues
occurs in one worker process, only that worker process will
stored and restart, the other process will still run.

Application domain is mapped to individual worker process,
that is w3wp.exe. but, there can be more than one
application domain mapped to a single worker process.

Is This Answer Correct ?    9 Yes 8 No

What is App Pool and App Domain? What is the difference between the two...

Answer / waleed mohamed

this post on my blog will explain well the app Domain
http://blog.flair-systems.com/2010/05/c-fastfood-what-appdomain.html

and i'll try to make a new post for the app pool

Is This Answer Correct ?    1 Yes 4 No

What is App Pool and App Domain? What is the difference between the two...

Answer / suresh

Application pool is created the each and every website.
Application domain is created to one domain purpose.

Is This Answer Correct ?    18 Yes 37 No

Post New Answer

More IIS Interview Questions

How do I disable ftp?

0 Answers  


Is iis a web server or an application server?

0 Answers  


What is latest iis version?

0 Answers  


How do I find server logs?

0 Answers  


What is the name of the user who connects to the web site anonymously?

0 Answers  






What is application pools in iis?

0 Answers  


What services does iisreset restart?

0 Answers  


Is iis considered middleware?

0 Answers  


What is full form of ll?

0 Answers  


types of telecommunication network used

1 Answers   Amama Enterprises, Infeneon Technologies,


Types of authentications in IIS?

2 Answers   Microsoft, STP,


How to configure the sites in Web server (IIS)?

4 Answers   Microsoft,


Categories