Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the advantages and/or disadvantages of running each website in its own AppPool?

Tags:

asp.net

iis

We have a couple of sites which have some memory problems and fairly often crashes and taking a lot of other sites down with them. So I'm planning to at least put the troublesome sites in their own individual AppPools. I just wanted to make sure that this is a safe move to do or if there are anything I should know about separating AppPools.

like image 913
JohannesH Avatar asked Jan 23 '23 06:01

JohannesH


2 Answers

There is a memory overhead associated with each app pool (a couple of hunded megabytes if memory serves), so if the problem is a lack of overall memory, this might not help.

Having said that, we run all of our websites in their own app pools by default, but we tend to have a maximum of a handfull on a single server, so I have no experience of large numbers of app pools at once.

We also find the advantages of being able to recycle a single app pool without affecting the other sites is a big advantage.

Finally, as well as isolation (as Guffa mentions) you can tune the settings of each app pool to restrict memory use etc, as well as identities and permissions. (We would tend to run different websites with different accounts, that only had permissions to their own databases for example)

There are a few questions about this on Server Fault too: https://serverfault.com/questions/2106/why-add-additional-application-pools-in-iis

like image 195
Andrew M Avatar answered Jan 25 '23 20:01

Andrew M


Advantage:

  • Separate credentials per app pool/web site
  • Better isolation, recycling etc
  • Separate configuration (timeout, memory etc)

Disadvantage:

  • Memory usage increases (not so much an issue with 64 bit these days)

Generally, there is no downside. If you have massive multiple sites on one web server, whether to have separate App Pools or not is a minor issue.

like image 41
gbn Avatar answered Jan 25 '23 19:01

gbn