减少 ASP.NET MVC 应用程序初始启动时的 JIT 开销
目前正在开发 MVC3 应用程序并遇到较长(多秒)的启动时间。使用 ANTS 进行的性能分析将加载时间的唯一重要影响因素视为“(JIT 开销)”,占加载时间的 85-90%。同一页面的后续加载几乎是即时的,大约 5% 的时间花在 JIT 上。
我在正在加载的程序集上使用了 NGEN(并确保它们位于 GAC 中),并使用 aspnet_compiler 工具来预编译站点本身。两者似乎都对初始启动时间没有显着影响。
还有哪些其他选项可以减少 JIT 对初始负载的影响?
Currently developing an MVC3 application and experiencing high (multi-second) startup times. Performance profiling with ANTS pegs the only significant contributor to load time as "(JIT overhead)" at 85-90% of the time spent on load. Subsequent loads of the same page are near instant and spend ~5% of their time in the JIT.
I have used NGEN on the assemblies being loaded (and made sure they are in the GAC) and used the aspnet_compiler tool to pre-compile the site itself. Neither seem to have a significant effect on the initial startup time.
What other options are there for reducing the impact the JIT has on initial loads?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议您按如下方式进行检查
I would suggest ti check as follows