I've read recommendations that we should create separate application pools for each asp.net application on our Win2008 server.

We have about 20 apps that would be on the same server. I know this would create 20 separate worker processes which seems very wasteful.

Is it good practice to create separate application pools for each application?

推荐答案

Reposted from ServerFault, "Why add additional application pools in IIS?"

  • AppPools can run as different identities, so you can restrict permissions this way.
  • You can assign a different identity to each app pool so that when you run task manager, you know which w3wp.exe is which.
  • You can recycle/restart one app pool without affecting the sites that are running in different app pools.
  • If you have a website that has a memory leak or generally misbehaves, you can place it in an app pool so it doesn't affect the other web sites
  • If you have a website that is very CPU-intensive (like resizing photos, for instance), you can place it in its own app pool and throttle its CPU utilization
  • If you have multiple websites that each have their own SQL database, you can use active directory authentication instead of storing usernames/passwords in web.config.

Asp.net相关问答推荐

解析器错误消息:文件/TestSite/Default.aspx.cs不存在

Automapper - 映射器已初始化错误

Directory.Exists 不适用于网络路径

在上下文中找不到 owin.Environment 项

发布发布事件

将通用列表绑定到转发器 - ASP.NET

设置 Response.Status 生成HTTP 状态字符串无效异常

解析器错误:无法创建类型

如何获取正在访问 ASP.NET 应用程序的当前用户?

带有 ASP.NET WebMethod 的 Jquery AJAX 返回整个页面

如何防止 XXE 攻击(.NET 中的 XmlDocument)

将新行添加到数据表的顶部

IIS Express - 增加内存限制

在 ASP.NET 中使用 MasterPages 时使用 JQuery 的正确方法?

ASP.NET MVC 路由的无限 URL 参数

调查 Web.Config 重复部分原因的步骤

使用 FormsAuthentication.SetAuthCookie 存储更多信息

MVC4 中 Global.asax.cs 页面中的问题

您的下一个 ASP.NET 项目的 Select 是什么:Web 窗体还是 MVC?

在没有等待 #2 的情况下调用异步方法