IIS6 architecture model and process relationship, iis6 Architecture Model
Relationship between IIS6 architecture model and process
The architecture model of IIS 6 consists of the following three components:HTTP. SYS,W3SVCAndW3Core. As a brand new architecture, IIS6.0 has the following new features worth noting:
HTTP. SYS. New kernel listening mode
IIS6.0 New Application Isolation Mode-Working Process Isolation Mode
Application pool
Worker Process
Web Management Service (W3SVC)
The IIS 6 Architecture Model prevents users' applications from accessing or modifying key operating system data. It provides two processor access modes:User Mode)AndKernel Mode). As shown in:
Generally, the User program runs in User mode, while the operating system code runs in Kernel Mode. The Kernel Mode code allows access to all system memory and all CPU commands.
Comparison between IIS5 and IIS6 architecture models
In terms of Performance, IIS5 runs IIS and application in different processes, although they adopt Asynchronous Communication Based on Named Pipe, however, the impact of inter-process-based communication on performance cannot be fundamentally solved.
Considering the Reliability,IIS5Only one worker process can be run on one machine. Each Application runs in the same process. Although Application Domain-based isolation can provide certain Reliability, once the entire process crashes, all applications are affected. Therefore, we sometimes need to provide Process-based isolation.
Based on the Reliability Improvement, IIS 6 introduces the Application Pool.
ApplicationPool is an application container. in IIS 6, we can create several Application pools. When creating a Web Application, we specify an existing application Pool for it.
At runtime, an Application Pool corresponds to a Worker Process: w3wp.exe.
For IIS 6, multiple Worker processes can be run on the same machine at the same time. Each Application domain in each Worker Process corresponds to one Application. In this way, Application in the IIS 6 architecture model can not only provide Application Domain-level isolation, but also place different applications in different Application pools to implement Process-level isolation.
In IIS 5.x, inetinfo.exe monitors and distributes requests in User Mode. in IIS 6, this job is transplanted to the kernel Mode,All of this is handled by a new component: http. sys..