What is an IIS application pool?

后端 未结 15 1594
轻奢々
轻奢々 2020-12-02 04:26

What exactly is an application pool? What is its purpose?

相关标签:
15条回答
  • 2020-12-02 04:59

    I second the top voted answer, but feel like adding little more details here if anyone finds it useful.

    short version :

    IIS runs any website you configure in a process named w3wp.exe. IIS Application pool is feature in IIS which allows each website or a part of it to run under a corresponding w3wp.exe process. So you can run 100 websites all in a single w3wp.exe or 100 different w3wp.exe. E.g. run 3 websites in same application pool(same w3wp.exe) to save memory usage. ,run 2 different websites in two different application pools so that each can run under separate user account(called application pool identity). run a website in one application pool and a subsite 'website/app' under a different application pool.

    Longer version:

    Every website or a part of the website,you can run under an application pool.You can control some basic settings of the website using an application pool.

    1. You would like the website to run under a different w3wp.exe process.Then create a new application pool and assign that to the website.
    2. You would like to run the website and all it's code under a different user account(e.g under Admin privileges),you can run do that by changing Application Pool Identity.
    3. You would like to run a particular application under .net framework 4.0 or 2.0.
    4. You would like to make sure the website in 32 bit mode or have a scheduled recycle of the w3wp.exe process etc.All such things are controlled from iis application pool.

    Hope it helps!

    0 讨论(0)
  • 2020-12-02 05:00

    Application pools allow you to isolate your applications from one another, even if they are running on the same server. This way, if there is an error in one app, it won't take down other applications.

    Additionally, applications pools allow you to separate different apps which require different levels of security.

    Here's a good resource: IIS and ASP.NET: The Application Pool

    0 讨论(0)
  • 2020-12-02 05:02

    An application pool is like a pond, if I create 2 application pools, first application pool has 100 fishes and another application pool has 200 fishes, here fish is like an application in application pool. They are managed by worker processes. Best advantage is: if pound number-1 has bad water and cases all fish are effected then there is security of fish in pound number-2. Like this if any application pool is effected by any problem but there is not any effect of this problem in application pool 2 so security in improve, and another profit is that is you provide all necessary authentication and rights to all applications in a single application pool.

    0 讨论(0)
提交回复
热议问题