在 IIS 7 上的一个 Web 应用程序中运行多个应用程序池
是否可以在 IIS 7 或 7.5 上的同一 Web 应用程序中运行多个应用程序池?我在 asp.net 4.0 上有一个使用 EF 4.0 和一大组实体的 Web 应用程序。然后第一个查询很慢,当应用程序池失败时,用户需要重新登录,但是池重新启动,第一个查询太慢,这导致任何无法登录一段时间(大约是应用程序池的时间)旧池已完成,新池已准备就绪)。
如果我可以在同一个站点(例如在同一个端口 8080 上)使用多个应用程序池,那就可以解决我的问题。我发现的唯一方法是创建一个服务器场。但是,如果我理解的话,每台服务器将是虚拟机还是真实机?
It's possible to run more that one aplication pool in the same WebApplication on IIS 7 or 7.5? I have one web application on asp.net 4.0 that use EF 4.0 and a large set of Entities. Then the First query Its to slow and when the application pool fails, the users need to login again, but the pool was restarted and the first query Its too slow, this cause any can't login for a time (about the time that the old pool is finished and the new pool It's ready).
If I can use multiple applications pools for the same site, on the same port 8080 for example, thats solve my problem. The only way I found was to create a server farm. However, if I understand, each servers would be a virtual or real machine?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在一个站点目录根下运行多个应用程序和关联的池。在 IIS 7 管理器中,只需右键单击相关文件夹,然后在出现的对话框中选择“创建应用程序”,设置新的应用程序池和物理路径。这意味着您必须将代码分离到单独的项目/模块(Web 应用程序或 vs 中的 Web 应用程序项目)中,但它们都将共享同一个站点。
You can have multiple applications and associated pools running under one site directory root. In IIS 7 manager, simply right-click on the folder in question and select "Create Application" in the resulting dialog set the new application pool and the physical path. This will mean that you have to segregate your code into separate projects/modules (web applications or web application projects in vs) but they will all share the same site.