11

Due to a major update in our architecture, we now have a few unused application pools under IIS (there are no web sites mapped to them).

I understand how it can a good idea to remove them just to improve readibility, but my question is more about performance implications: Does having these unused application pools matter in term of memory, CPU, IIS request processing speed, or any other performance metric?

From what I can see, an application pool with no web sites does not create a worker process, so I suspect there's no difference in performance, but I want to be sure I'm not missing something.

voretaq7
  • 79,345
  • 17
  • 128
  • 213

2 Answers2

12

The only overhead incurred will be the few bytes taken up in applicationHost.config to define the Application Pools and any non-default settings they may have.

If you have a 1000 unused app pools it might improve the time it takes to apply on-the-fly configuration changes to IIS (since there's less XML for the WAS service to parse), but with 5 App Pools I would argue that there is virtually no difference

Mathias R. Jessen
  • 24,907
  • 4
  • 62
  • 95
3

From what I can see, an application pool with no web sites, does not create a worker process

This is a true statement. See this for reference. (IIS 6, but it applies to 7 and above)

My thoughts are this... It isn't hurting anything with such a small number of unused app pools to just leave them, and you never know when you might need to change a website's pool to use one of the old ones in the event of one of your upgrades going bad.

In terms of memory, cpu, and other IIS resources there is absolutely no tax on them unless a worker process is created, and if the app pools aren't mapped to web sites then they won't create a worker process and take up any available resources. The other great thing is you could just leave them in the stopped state too so that you truly make sure nothing ever gets mapped to them, and even if it does since they'd be in the stopped state you still wouldn't be using resources. In about 3 months time I usually remove old app pools just to keep things clean.

Hope that helps.

Brad Bouchard
  • 2,507
  • 2
  • 12
  • 22
  • *Ongoing* memory, CPU and other IIS resources, but an increase in size for ApplicationHost.config does cause it to take longer to be processed for other changes. It might be infinitesimal in the case of a couple-of-line change, but it's not "absolutely" none. – TristanK Apr 30 '14 at 07:38
  • The "no tax" I was referring to was on the apppools. – Brad Bouchard May 01 '14 at 21:12