ASP.NET 应用程序启动速度非常慢
我有一个页面数量很少的 ASP.NET 应用程序。我看到的问题是启动时间非常慢。据我所知,大部分时间都花在JIT上。根据 PerfMon 的报告,预编译应用程序对于减少 #methods JIT 似乎没有多大帮助。有人知道我可以做些什么来进一步缩短启动时间吗? 是否真的无法使用 NGEN 预编译 ASP.NET 应用程序?
I have an ASP.NET applications with quite small number of pages. The problem I see is that the startup time is quite slow. As far as I can tell, most of the time is spent in JIT. Pre-compiling the applications seem not very helpful in reducing the #methods JIT as reported thru PerfMon. Does anybody know what I can do to reduce the startup time further?
Is it true that there is no way to pre-jit an ASP.NET application using NGEN?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否在 web.config 中设置了以下元素?
看一下 http://www.aspnetresources.com/articles/debug_code_in_Production.aspx 有关当调试模式设置为 true 时框架会执行哪些操作的一些有用信息:它相当旧,但其中很多内容仍然相关。
如果不进一步了解您的应用程序的用途、Application_Start 事件中发生的情况等,就很难为您提供更具体的建议。
Have you set the following element in your web.config?
Take a look at http://www.aspnetresources.com/articles/debug_code_in_production.aspx for some useful information on what the framework does when you have debug mode set to true: it's fairly old but a lot of it is still relevant.
Without knowing a little more about what your app does, what you've got going on in the Application_Start event etc, it will be difficult to give you more specific advice.