应用程序池究竟是什么?它的目的是什么?


当前回答

应用程序池是由一个或多个url组成的一组,由一个或一组工作进程提供服务。应用程序池用于分离共享相同配置和应用程序边界的IIS工作进程集。应用程序池用于隔离我们的web应用程序,以获得更好的安全性、可靠性、可用性和性能,并且它们保持运行而不相互影响。

其他回答

假设游泳者在预留给他们的游泳池游泳。如果游泳者游到为他们预留的区域之外会发生什么,整个事情会变得一团糟。类似地,iis使用应用程序池将一个进程与另一个进程分开。

应用程序池是由一个或多个url组成的一组,由一个或一组工作进程提供服务。任何Web目录或虚拟目录都可以分配给应用程序池。

应用程序池中的每个应用程序共享相同的工作进程。

应用程序池用于分离共享相同配置和应用程序边界的IIS工作进程集。

应用程序池用于隔离我们的web应用程序,以获得更好的安全性、可靠性、可用性和性能,并在不相互影响的情况下保持运行。工作进程充当分离每个应用程序池的进程边界,因此当一个工作进程或应用程序出现问题或被回收时,其他应用程序或工作进程不会受到影响。一个应用程序池也可以有多个工作进程。

或者我们可以简单地说,应用程序池是一个或多个url的组,由一个或一组工作进程提供服务。任何Web目录或虚拟目录都可以分配给应用程序池。因此,如果你使用独立的应用程序池,一个网站不会受到其他网站的影响。

来源:Interviewwiz

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 pond number-1 has bad water and cases all fish are effected then there is security of fish in pond number-2. Like this if any application pool is affected by any problem but there is not any effect of this problem in application pool 2 so security improves, and another benefit is that is you provide all the necessary authentication and rights to all applications in a single application pool.

应用程序池是由工作处理器或一组工作处理器提供服务的一组url。

可以存在任意数量的应用程序池。

在IIS中,可以创建多个应用程序池。

不同应用程序池中的应用程序在不同的工作处理器中运行。

优点:如果在一个应用程序池中发生错误,则不会影响在另一个应用程序池中运行的应用程序。