什么是IIS和Asp.Net应用程序池? [英] What is Application Pool in IIS and Asp.Net?

查看:422
本文介绍了什么是IIS和Asp.Net应用程序池?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在IIS应用程序池实现?

  1. 是每个应用程序池相当于一个.net应用程序域?
  2. 或者它是一个相当于净进程?
  3. 如何应用程序池与IIS的w3wp.exe?
解决方案
  

1。是每个应用程序池相当于一个.net应用程序域?

没有,一个应用程序池可能有多个应用程序域。每一个AppDomain中重新presents单个运行ASP.NET应用程序。许多ASP.NET应用程序可能属于一个应用程序池。

  

2。或者它是一个相当于净进程?

不太。见下文。

  

3。应用程序池是如何与IIS的w3wp.exe?

这是应用程序池重新presents可代管应用的潜在的更大数目的工作进程的数量有限。这类似于如何一个SQL连接池之间共享的请求的任意数目的连接的数量有限。

在默认情况下,一个应用程序池获得一个工作进程(的w3wp.exe ),它通常最好单独离开这个设置,除非你知道自己在做什么。仍然,应用程序池可以被配置为使用任何数量的进程。

工作进程实际上是一个正在被这里汇集的资源,而不是应用程序域。总会有程序域的相同数量的有ASP.NET应用程序(除非一个是在关闭的中间,或应用程序创建其自己的应用程序域),但工作进程的数量是独立的;应用程序池为您提供了工作进程的一个具体的数字来处理应用程序域特定数量的请求。

1(默认值)用于在应用程序池的工作进程数的设置意味着所有的应用程序/池中共享应用程序域相同的工作进程。

How is application pool implemented in IIS?

  1. Is each application pool equivalent to a .Net AppDomain?
  2. Or it is a equivalent to a .Net process?
  3. How is Application pool related to IIS w3wp.exe?

解决方案

1 . Is each application pool equivalent to a .Net AppDomain?

No, an application pool may have several AppDomains. Each AppDomain represents a single running ASP.NET Application. Many ASP.NET Applications may belong to a single Application Pool.

2 . Or it is a equivalent to a .Net process?

Not quite. See below.

3 . How is Application pool related to IIS w3wp.exe?

An application pool represents a limited number of worker processes that may host a potentially larger number of applications. This is similar to how a SQL Connection Pool shares a limited number of connections among an arbitrary number of requests.

By default, an Application Pool gets one Worker Process (w3wp.exe), and it's usually best to leave this setting alone unless you know what you're doing. Still, an Application Pool can be configured to use any number of processes.

The Worker Process is actually the resource that's being pooled here, not the AppDomain. There will always be the same number of AppDomains as there are ASP.NET Applications (unless one is in the middle of shutting down, or an application creates its own AppDomains), but the number of Worker Processes is independent; an Application Pool gives you a specific number of Worker Processes to handle requests for a specific number of AppDomains.

A setting of 1 (the default) for the number of worker processes in an App Pool means that all Applications/AppDomains in the pool share the same worker process.

这篇关于什么是IIS和Asp.Net应用程序池?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆