17

In IIS 7, what is best practice? Should I create an application pool for each application, or should I share an application pool with as much application as possible?

Are there any performance drawbacks or security issues related to one of the options?

jao
  • 18,273
  • 15
  • 63
  • 96
  • Possible duplicate of [Pros and cons of having dedicated application pools over keeping web applications in one default app pool](https://stackoverflow.com/questions/223326/pros-and-cons-of-having-dedicated-application-pools-over-keeping-web-application) – Michael Jul 10 '19 at 14:30

3 Answers3

20

Each application pool is an instance of W3wp.exe, a worker process for that site or set of sites. By placing each application in a seperate app pool, you ensure that problems that could potentially cause problems within the app pool do not cause problems with other applications. There is obviously an overhead to operating like this in terms of resources.

So generally, for simple sites and blogs I usually put these in a shared app pool. For more intensive or important applications, I seperate into individual app pools. This is just a guide to how I operate.

I believe IIS7 now creates seperate app pools when you create a web site (not 100% though).

Chris Pont
  • 789
  • 5
  • 14
  • A link to some data showing the results of one to one vs one to many http://www.christiaanverwijs.nl/post/2013/08/28/IIS-75-Avoid-performance-issues-when-creating-isolated-application-pools-for-applications4.aspx – Atters Sep 17 '14 at 05:02
  • I do not understand the last paragraph. Are you saying that when you set up a new web site, IIS creates a separate app pool *by default* (but the user may later reconfigure this association); or are you saying that (possibly contrary to what IIS management tools report) it *always* puts web sites in separate app pools internally? – stakx - no longer contributing Jan 30 '15 at 09:27
6

In theory it is better to put each site to its own pool. In practice it takes much more RAM than placing the sites to a single pool. So, on most servers you will see 10-100 pools only, even if there are 1000 sites.

BabYagun
  • 112
  • 1
  • 5
-4

Sharing Application pool is better than creating an application pool for each application for a fixed number of application

You can run as many application pools on your IIS 7 server as you need but this will affect server performance.On the other hand Application pools allow a set of Web applications to share one or more similarly configured worker processes but you should not share an application pool to a lot of application.Because This will affect your server performance too!

So in both way you have to be tactful.

bilash.saha
  • 7,226
  • 2
  • 35
  • 40
  • 1
    This article explains in details, why what you are suggesting is wrong... https://blogs.msdn.microsoft.com/carmelop/2013/03/22/how-many-web-applications-per-application-pool/ – Pravin Aug 09 '16 at 18:13