是否有任何 IIS 应用程序池使用指南?
我最近一直在研究应用程序池,特别是考虑到 ASP.NET 应用程序,并且我一直在努力寻找使用应用程序池的最佳实践。
当然,很大程度上取决于您的目标应用程序在内存限制等方面的大小和规模,但我更具体地考虑了以下几条线...
如果开发需要部署在现有站点下的相对较小的.net应用程序,作为最佳实践,我应该为每个应用程序创建一个新的虚拟目录和应用程序池吗?
或者我应该在已经存在的应用程序池的网站下运行它们?
其次,您可以在标准 Web 服务器上运行的应用程序池数量是否有任何限制(实际上,再次假设具有自动处理内存限制且未定义的小型应用程序)?
考虑到弹性和优化,我最初的想法是在父站点下为每个应用程序创建一个新的 v 目录和应用程序池 - 我只是想知道是否有人对最佳实践或可能有帮助的链接有任何想法?
干杯
I've been looking at application pools lately, specifically with ASP.NET applications in mind and I've been struggling to find any best practices for use of application pools.
Of course alot depends of the size and scale of your destined apps in regards to memory limits etc, but I was more specifically thinking along the following lines...
If developing relatively small .net apps which need to be deployed underneath an existing site, should I as a best practice be creating a new virtual directory and application pool for each app?
Or should I just run them underneath the sites already present app pool?
Secondly are there any limits to the amount of app pools you can run (realistically and again assuming small apps with memory limits auto-handled and not defined) on a standard web server?
With resilliance and optimisation in mind my initial thought is to create a new v dir and app pool per app under the parent site - I just wondered if anyone has any thoughts on best practice or links that may assist?
Cheers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了提高弹性,请为每个应用程序创建一个单独的应用程序池。这样,如果一个应用程序中发生导致池停止的事件,则只有该应用程序受到影响,而不是服务器上的任何其他应用程序受到影响。
这在安全性方面也有所帮助 - 应用程序池控制正在运行的应用程序的身份。您应该只授予应用程序在计算机上运行所需的足够权限。如果一个应用程序需要访问服务器上的特定文件夹,这并不意味着您应该为所有应用程序提供相同的访问权限。
For resilience, create a separate application pool for each application. That way if an event occurs in one application that causes the pool to stop, it is only THAT application affected, and not any others on your server.
This also helps in terms of security - the application pool controls the identity of the running application. You should only give just enough permissions for the application to run on the machine. If one application requires access to a specific folder on the server, that doesn't mean you should be giving the same access to all of your applications.