MVC3 生产 iis7 的速度
我有一个 MVC3 应用程序,它在我的开发环境中运行得很快(即使指向生产数据库)。然而,当我发布应用程序并将其移至生产 iis7 环境时,它的运行速度非常缓慢。据我所知,应用程序池启动时初始加载可能需要几秒钟,但这需要 20 多秒。然后单击几下就会很快,下一次单击将再次需要 20 秒以上。
我已经放入了 MVCMiniPorifler,看起来数据库并没有引起问题。但是,我也看不出是什么导致了问题。我可以多次点击同一页面,它会在一两秒内返回,然后突然同一页面将需要 20 秒以上的时间才能响应。
以前有人见过这种行为吗?任何帮助将不胜感激,我不知道下一步该尝试什么。
I have an MVC3 application which is working fast in my dev environment (even when pointed at the production database). However, when I publish the application and move it onto the production iis7 environment it runs at a snails pace. I understand that the inital load can take a few seconds as the application pool starts up, but this is taking 20+ seconds. Then will be fast for a few clicks and the next click will again take 20+ seconds.
I've put in the MVCMiniPorifler and it doesn't look like the database is causing problems. But, I also can't see what is causing the problem. I can hit the same page multiple times and it comes back in a second or 2 and then suddenly that same page will take 20+ seconds to respond.
Has anyone seen this sort of behaviour before? Any help would be greatly appreciated and I'm not sure what to try next.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的生产服务器上运行的其他 Web 应用程序可能正在锁定所需的资源。是否有多个站点使用的通用文件或文件夹?您是否在任何站点之间共享应用程序池?
It's possible that the other web apps running on your production server are locking required resources. Is there a common file or folder that multiple sites utilize? Are you sharing the app pool between any of the sites?