何时在IIS中的同一应用程序池上托管不同的应用程序 [英] When Do I host different applications on the same application pool in IIS
问题描述
可以在一个应用程序池中托管多个应用程序。这就是我所知道的,但是我们可以说每个应用程序都应该托管在不同的应用程序池中吗?我什么时候可以为不同的应用程序使用相同的应用程序池?
It can be hosted more than one application in one application pool. Thats what I know but can we say every application should be hosted on a different application pool ? When can I use same application pool for different application ?
推荐答案
可以为多个应用程序使用相同的应用程序池 - 尽管你需要考虑一些方面:
Using the same application pool for more than one application is possible - though you need to take into account some aspects:
-
安全上下文
如果应用程序需要不同的设置安全性它进入一个不同的池
security context
IF an app needs a different setup security-wise it goes into a different pool
资源使用
如果一个应用程序占用了大量资源,它可能会更好使用单独的池
resource usage
IF an app takes lots of resources it might be better to use a separate pool
重新启动场景
如果应用程序有关于重启的不同周期等(如更新等),则可能是更好地使用不同的池
restart scenarios
IF an app has different cycle etc. regarding restart (like updates etc) it might be better to use a different pool
应用程序间通信性能
如果两个或更多应用程序需要进行非常密集的通信,则可能是更好的表现是将它们放在同一个池中。
inter-application communication performance
IF two or more apps need to communicate very intensely it might be better performance-wise to have them in the same pool.
稳定性
如果应用程序的稳定性远低于其他应用程序那么它应该进入一个不同的池
stability
IF an app is much less stable than the others then it should go into a different pool
在所有其他情况下,更多的是管理方便(例如每个站点一个应用程序池)是否使用相同的应用程序池......
In all other cases it is more a question of ease of administration (for example one app pool per site) whether to use the same app pool or not...
这篇关于何时在IIS中的同一应用程序池上托管不同的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!